<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">


<html xmlns="http://www.w3.org/1999/xhtml" lang="en">

<head>
  <link href='https://fonts.googleapis.com/css?family=Inconsolata' rel='stylesheet' type='text/css' /><title>Connection String URI Format &mdash; MongoDB Manual</title><link rel="shortcut icon" href="https://media.mongodb.org/favicon.ico" />
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="robots" content="index" />

  <meta name="release" content="4.2.5"/>
  <meta name="version" content="4.2"/>
  <meta name="DC.Source" content="https://github.com/mongodb/docs/blob/v4.2/source/reference/connection-string.txt"/>
  <meta property="og:image" content="http://s3.amazonaws.com/info-mongodb-com/_com_assets/cms/mongodb-for-giant-ideas-bbab5c3cf8.png">
  <meta property="og:image:secure_url" content="https://webassets.mongodb.com/_com_assets/cms/mongodb-for-giant-ideas-bbab5c3cf8.png">
      <link rel="canonical" href="https://docs.mongodb.com/manual/reference/connection-string" />
  
   <link rel="stylesheet" href="../_static/mongodb-docs.css" type="text/css" />
   <link rel="stylesheet" href="../_static/pygments.css" type="text/css" />
   <link rel="stylesheet" href="../_static/css/navbar.min.css" type="text/css" />
    
    <script type="text/javascript" src="../_static/lib/jquery.min.js"></script>
    <script type="text/javascript" src="../_static/underscore.js"></script>
    <script type="text/javascript" src="../_static/lib/bootstrap.js"></script>
    <script type="text/javascript" src="../_static/lib/jquery.cookie.js"></script>
    <script type="text/javascript" src="../_static/controller.js"></script>
      <link rel="search" type="application/opensearchdescription+xml" href="https://docs.mongodb.com/osd.xml" title="MongoDB Help"/>
<link rel="author" title="About these documents" href="../about.html" />
<!-- <link rel="index" title="Index" href="../genindex.html" /> -->
<link rel="search" title="Search" href="../search.html" />
<link rel="top" title="MongoDB Manual" href="../index.html" />
<link rel="up" title="Reference" href="../reference.html" />
<link rel="next" title="Collation" href="collation.html" />
<link rel="prev" title="System Collections" href="system-collections.html" /><script type='text/javascript'>
   var gptadslots=[];
   var googletag = googletag || {};
   googletag.cmd = googletag.cmd || [];
   (function(){ var gads = document.createElement('script');
      gads.async = true; gads.type = 'text/javascript';
      var useSSL = 'https:' == document.location.protocol;
      gads.src = (useSSL ? 'https:' : 'http:') + '//www.googletagservices.com/tag/js/gpt.js';
      var node = document.getElementsByTagName('script')[0];
      node.parentNode.insertBefore(gads, node);
   })();
</script>

<script type="text/javascript">
   googletag.cmd.push(function() {

      var pathname = location.href;
      
      if ( (pathname.indexOf("auth") >= 0) || (pathname.indexOf("security") >= 0) ) {
         gptadslots[1]= googletag.defineSlot('/40039723/docs.mongodb.org/security', [[160,600],[243,202],[293,244]],'mongodb-docs-1').addService(googletag.pubads());
      } else if ( (pathname.indexOf("crud") >= 0) ||  (pathname.indexOf("query") >= 0) || (pathname.indexOf("insert") >= 0) || (pathname.indexOf("update") >= 0) || (pathname.indexOf("remove") >= 0) || (pathname.indexOf("delete") >= 0) || (pathname.indexOf("aggregation") >= 0) ) {
         gptadslots[1]= googletag.defineSlot('/40039723/docs.mongodb.org/crud', [[160,600],[243,202],[293,244]],'mongodb-docs-1').addService(googletag.pubads());
      } else if (pathname.indexOf("shard") >= 0) {
         gptadslots[1]= googletag.defineSlot('/40039723/docs.mongodb.org/sharding', [[160,600],[243,202],[293,244]],'mongodb-docs-1').addService(googletag.pubads());
      } else if (pathname.indexOf("replica") >= 0) {
         gptadslots[1]= googletag.defineSlot('/40039723/docs.mongodb.org/replication', [[160,600],[243,202],[293,244]],'mongodb-docs-1').addService(googletag.pubads());
      } else if (pathname.indexOf("model") >= 0) {
         gptadslots[1]= googletag.defineSlot('/40039723/docs.mongodb.org/data-modeling', [[160,600],[243,202],[293,244]],'mongodb-docs-1').addService(googletag.pubads());
      } else if (pathname.indexOf("administration") >= 0) {
         gptadslots[1]= googletag.defineSlot('/40039723/docs.mongodb.org/support', [[160,600],[243,202],[293,244]],'mongodb-docs-1').addService(googletag.pubads());
      } else if (pathname.indexOf("install-mongodb-on-windows") >= 0) {
         gptadslots[1]= googletag.defineSlot('/40039723/docs.mongodb.org/install-mongodb-on-windows', [160, 600], 'mongodb-docs-1').addService(googletag.pubads());
      } else if (pathname.indexOf("tutorial/getting-started") >= 0) {
         gptadslots[1]= googletag.defineSlot('/40039723/docs.mongodb.org/docs_server_gettingstarted', [160, 600], 'mongodb-docs-1').addService(googletag.pubads());
      } else {
         //Adslot 1 declaration
         gptadslots[1]= googletag.defineSlot('/40039723/docs.mongodb.org', [[160,600],[243,202],[293,244]],'mongodb-docs-1').addService(googletag.pubads());
      }
      googletag.pubads().enableSingleRequest();
      googletag.pubads().enableAsyncRendering();
      googletag.enableServices();
   });
</script></head>
<body data-project="manual" data-project-title="MongoDB Manual" data-branch="v4.2" data-enable-marian=1>
  <!-- Google Tag Manager -->
  <noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-JQHP"
                    height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
  <script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push(
     {'gtm.start': new Date().getTime(),event:'gtm.js'}
   );var f=d.getElementsByTagName(s)[0],
   j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
   '//www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
   })(window,document,'script','dataLayer','GTM-JQHP');</script>
  <!-- End Google Tag Manager -->
<div id="navbar" data-navprops='{"links": [{"url": "https://docs.mongodb.com/manual/","text": "Server","active": true},{"url": "https://docs.mongodb.com/ecosystem/drivers/","text": "Drivers"},{"url": "https://docs.mongodb.com/cloud/","text": "Cloud"},{"url": "https://docs.mongodb.com/tools/","text": "Tools"},{"url": "https://docs.mongodb.com/guides/","text": "Guides"}]}'></div>
      <script>
        window.googleSearchCx = "017213726194841070573:WMX6838984"
	window.googleSearchPlaceholder = "Search Documentation"
        window.googleSearchResultsUrl = "http://docs.mongodb.com/manual/search/"
      </script>
    <script src="../_static/navbar.min.js"></script>
  

  <div class="content" >

   <div id="left-column">
         <aside id="sidebar" class="sidebar">
             
  <div class="sphinxsidebar" id="sphinxsidebar">
    <div id="sphinxsidebarwrapper" class="sphinxsidebarwrapper"><a href="javascript:void(0)" class="closeNav" id="closeNav">Close &times;</a>


<h3>
  <a class="index-link" href="../index.html">MongoDB Manual</a>
</h3>


    <div class="btn-group version-sidebar">
      <button type="button" class="version-button dropdown-toggle" data-toggle="dropdown">
        
        
        Version 4.2 (current)<span class="caret"></span>
      </button>
      <ul class="dropdown-menu" role="menu">
        
          
          <li>
          
            <a class="version-selector" href="#" data-path="master">
              
              Version 4.4 (upcoming)
            </a>
          </li>
        
          
          <li class="active">
          
            <a href="#" data-path="manual">
              
              Version 4.2 (current)
            </a>
          </li>
        
          
          <li>
          
            <a class="version-selector" href="#" data-path="v4.0">
              
              Version 4.0
            </a>
          </li>
        
          
          <li>
          
            <a class="version-selector" href="#" data-path="v3.6">
              
              Version 3.6
            </a>
          </li>
        
          
          <li>
          
            <a class="version-selector" href="#" data-path="v3.4">
              
              Version 3.4
            </a>
          </li>
        
          
          <li>
          
            <a class="version-selector" href="#" data-path="v3.2">
              
              Version 3.2
            </a>
          </li>
        
          
          <li>
          
            <a class="version-selector" href="#" data-path="v3.0">
              
              Version 3.0
            </a>
          </li>
        
          
          <li>
          
            <a class="version-selector" href="#" data-path="v2.6">
              
              Version 2.6
            </a>
          </li>
        
          
          <li>
          
            <a class="version-selector" href="#" data-path="v2.4">
              
              Version 2.4
            </a>
          </li>
        
          
          <li>
          
            <a class="version-selector" href="#" data-path="v2.2">
              
              Version 2.2
            </a>
          </li>
        
      </ul>
    </div>


<ul class="current"><li class="toctree-l1"><a class="reference internal" href="../introduction.html">Introduction</a><ul><li class="toctree-l2"><a class="reference internal" href="../tutorial/getting-started.html">Getting Started</a></li><li class="toctree-l2"><a class="reference external" href="https://docs.atlas.mongodb.com/getting-started/">Create an Atlas Free Tier Cluster</a></li><li class="toctree-l2"><a class="reference internal" href="../core/databases-and-collections.html">Databases and Collections</a><ul><li class="toctree-l3"><a class="reference internal" href="../core/views.html">Views</a></li><li class="toctree-l3"><a class="reference internal" href="../core/materialized-views.html">On-Demand Materialized Views</a></li><li class="toctree-l3"><a class="reference internal" href="../core/capped-collections.html">Capped Collections</a></li></ul></li><li class="toctree-l2"><a class="reference internal" href="../core/document.html">Documents</a></li><li class="toctree-l2"><a class="reference internal" href="bson-types.html">BSON Types</a><ul><li class="toctree-l3"><a class="reference internal" href="bson-type-comparison-order.html">Comparison/Sort Order</a></li><li class="toctree-l3"><a class="reference internal" href="mongodb-extended-json.html">MongoDB Extended JSON (v2)</a></li><li class="toctree-l3"><a class="reference internal" href="mongodb-extended-json-v1.html">MongoDB Extended JSON (v1)</a></li></ul></li></ul></li><li class="toctree-l1"><a class="reference internal" href="../installation.html">Installation</a><ul><li class="toctree-l2"><a class="reference internal" href="../administration/install-community.html">Install MongoDB Community Edition</a><ul><li class="toctree-l3"><a class="reference internal" href="../administration/install-on-linux.html">Install on Linux</a><ul><li class="toctree-l4"><a class="reference internal" href="../tutorial/install-mongodb-on-red-hat.html">Install on Red Hat</a><ul><li class="toctree-l5"><a class="reference internal" href="../tutorial/install-mongodb-on-red-hat-tarball.html">Install using .tgz Tarball</a></li></ul></li><li class="toctree-l4"><a class="reference internal" href="../tutorial/install-mongodb-on-ubuntu.html">Install on Ubuntu</a><ul><li class="toctree-l5"><a class="reference internal" href="../tutorial/install-mongodb-on-ubuntu-tarball.html">Install using .tgz Tarball</a></li><li class="toctree-l5"><a class="reference internal" href="installation-ubuntu-community-troubleshooting.html">Troubleshoot Ubuntu Installation</a></li></ul></li><li class="toctree-l4"><a class="reference internal" href="../tutorial/install-mongodb-on-debian.html">Install on Debian</a><ul><li class="toctree-l5"><a class="reference internal" href="../tutorial/install-mongodb-on-debian-tarball.html">Install using .tgz Tarball</a></li></ul></li><li class="toctree-l4"><a class="reference internal" href="../tutorial/install-mongodb-on-suse.html">Install on SUSE</a><ul><li class="toctree-l5"><a class="reference internal" href="../tutorial/install-mongodb-on-suse-tarball.html">Install using .tgz Tarball</a></li></ul></li><li class="toctree-l4"><a class="reference internal" href="../tutorial/install-mongodb-on-amazon.html">Install on Amazon</a><ul><li class="toctree-l5"><a class="reference internal" href="../tutorial/install-mongodb-on-amazon-tarball.html">Install using .tgz Tarball</a></li></ul></li></ul></li><li class="toctree-l3"><a class="reference internal" href="../tutorial/install-mongodb-on-os-x.html">Install on macOS</a><ul><li class="toctree-l4"><a class="reference internal" href="../tutorial/install-mongodb-on-os-x-tarball.html">Install using .tgz Tarball</a></li></ul></li><li class="toctree-l3"><a class="reference internal" href="../tutorial/install-mongodb-on-windows.html">Install on Windows</a><ul><li class="toctree-l4"><a class="reference internal" href="../tutorial/install-mongodb-on-windows-unattended.html">Install using msiexec.exe</a></li></ul></li></ul></li><li class="toctree-l2"><a class="reference internal" href="../administration/install-enterprise.html">Install MongoDB Enterprise</a><ul><li class="toctree-l3"><a class="reference internal" href="../administration/install-enterprise-linux.html">Install on Linux</a><ul><li class="toctree-l4"><a class="reference internal" href="../tutorial/install-mongodb-enterprise-on-red-hat.html">Install on Red Hat</a><ul><li class="toctree-l5"><a class="reference internal" href="../tutorial/install-mongodb-enterprise-on-red-hat-tarball.html">Install using .tgz Tarball</a></li></ul></li><li class="toctree-l4"><a class="reference internal" href="../tutorial/install-mongodb-enterprise-on-ubuntu.html">Install on Ubuntu</a><ul><li class="toctree-l5"><a class="reference internal" href="../tutorial/install-mongodb-enterprise-on-ubuntu-tarball.html">Install using .tgz Tarball</a></li></ul></li><li class="toctree-l4"><a class="reference internal" href="../tutorial/install-mongodb-enterprise-on-debian.html">Install on Debian</a><ul><li class="toctree-l5"><a class="reference internal" href="../tutorial/install-mongodb-enterprise-on-debian-tarball.html">Install using .tgz Tarball</a></li></ul></li><li class="toctree-l4"><a class="reference internal" href="../tutorial/install-mongodb-enterprise-on-suse.html">Install on SUSE</a><ul><li class="toctree-l5"><a class="reference internal" href="../tutorial/install-mongodb-enterprise-on-suse-tarball.html">Install using .tgz Tarball</a></li></ul></li><li class="toctree-l4"><a class="reference internal" href="../tutorial/install-mongodb-enterprise-on-amazon.html">Install on Amazon</a><ul><li class="toctree-l5"><a class="reference internal" href="../tutorial/install-mongodb-enterprise-on-amazon-tarball.html">Install using .tgz Tarball</a></li></ul></li></ul></li><li class="toctree-l3"><a class="reference internal" href="../tutorial/install-mongodb-enterprise-on-os-x.html">Install on macOS</a></li><li class="toctree-l3"><a class="reference internal" href="../tutorial/install-mongodb-enterprise-on-windows.html">Install on Windows</a><ul><li class="toctree-l4"><a class="reference internal" href="../tutorial/install-mongodb-enterprise-on-windows-unattended.html">Install using msiexec.exe</a></li></ul></li><li class="toctree-l3"><a class="reference internal" href="../tutorial/install-mongodb-enterprise-with-docker.html">Install with Docker</a></li></ul></li><li class="toctree-l2"><a class="reference internal" href="../administration/upgrade-community-to-enterprise.html">Upgrade MongoDB Community to MongoDB Enterprise</a><ul><li class="toctree-l3"><a class="reference internal" href="../tutorial/upgrade-to-enterprise-standalone.html">Upgrade to MongoDB Enterprise (Standalone)</a></li><li class="toctree-l3"><a class="reference internal" href="../tutorial/upgrade-to-enterprise-replica-set.html">Upgrade to MongoDB Enterprise (Replica Set)</a></li><li class="toctree-l3"><a class="reference internal" href="../tutorial/upgrade-to-enterprise-sharded-cluster.html">Upgrade to MongoDB Enterprise (Sharded Cluster)</a></li></ul></li><li class="toctree-l2"><a class="reference internal" href="../tutorial/verify-mongodb-packages.html">Verify Integrity of MongoDB Packages</a></li></ul></li><li class="toctree-l1"><a class="reference internal" href="../mongo.html">The <code class="docutils literal"><span class="pre">mongo</span></code> Shell</a><ul><li class="toctree-l2"><a class="reference internal" href="../tutorial/configure-mongo-shell.html">Configure the <code class="docutils literal"><span class="pre">mongo</span></code> Shell</a></li><li class="toctree-l2"><a class="reference internal" href="../tutorial/access-mongo-shell-help.html">Access the <code class="docutils literal"><span class="pre">mongo</span></code> Shell Help</a></li><li class="toctree-l2"><a class="reference internal" href="../tutorial/write-scripts-for-the-mongo-shell.html">Write Scripts for the <code class="docutils literal"><span class="pre">mongo</span></code> Shell</a></li><li class="toctree-l2"><a class="reference internal" href="../core/shell-types.html">Data Types in the <code class="docutils literal"><span class="pre">mongo</span></code> Shell</a></li><li class="toctree-l2"><a class="reference internal" href="mongo-shell.html"><code class="docutils literal"><span class="pre">mongo</span></code> Shell Quick Reference</a></li></ul></li><li class="toctree-l1"><a class="reference internal" href="../crud.html">MongoDB CRUD Operations</a><ul><li class="toctree-l2"><a class="reference internal" href="../tutorial/insert-documents.html">Insert Documents</a><ul><li class="toctree-l3"><a class="reference internal" href="insert-methods.html">Insert Methods</a></li></ul></li><li class="toctree-l2"><a class="reference internal" href="../tutorial/query-documents.html">Query Documents</a><ul><li class="toctree-l3"><a class="reference internal" href="../tutorial/query-embedded-documents.html">Query on Embedded/Nested Documents</a></li><li class="toctree-l3"><a class="reference internal" href="../tutorial/query-arrays.html">Query an Array</a></li><li class="toctree-l3"><a class="reference internal" href="../tutorial/query-array-of-documents.html">Query an Array of Embedded Documents</a></li><li class="toctree-l3"><a class="reference internal" href="../tutorial/project-fields-from-query-results.html">Project Fields to Return from Query</a></li><li class="toctree-l3"><a class="reference internal" href="../tutorial/query-for-null-fields.html">Query for Null or Missing Fields</a></li><li class="toctree-l3"><a class="reference internal" href="../tutorial/iterate-a-cursor.html">Iterate a Cursor in the <code class="docutils literal"><span class="pre">mongo</span></code> Shell</a></li></ul></li><li class="toctree-l2"><a class="reference internal" href="../tutorial/update-documents.html">Update Documents</a><ul><li class="toctree-l3"><a class="reference internal" href="../tutorial/update-documents-with-aggregation-pipeline.html">Updates with Aggregation Pipeline</a></li><li class="toctree-l3"><a class="reference internal" href="update-methods.html">Update Methods</a></li></ul></li><li class="toctree-l2"><a class="reference internal" href="../tutorial/remove-documents.html">Delete Documents</a><ul><li class="toctree-l3"><a class="reference internal" href="delete-methods.html">Delete Methods</a></li></ul></li><li class="toctree-l2"><a class="reference internal" href="../core/bulk-write-operations.html">Bulk Write Operations</a></li><li class="toctree-l2"><a class="reference internal" href="../core/retryable-writes.html">Retryable Writes</a></li><li class="toctree-l2"><a class="reference internal" href="sql-comparison.html">SQL to MongoDB Mapping Chart</a></li><li class="toctree-l2"><a class="reference internal" href="../text-search.html">Text Search</a><ul><li class="toctree-l3"><a class="reference internal" href="../core/link-text-indexes.html">Text Indexes</a></li><li class="toctree-l3"><a class="reference internal" href="../core/text-search-operators.html">Text Search Operators</a></li><li class="toctree-l3"><a class="reference internal" href="../tutorial/text-search-in-aggregation.html">Text Search in the Aggregation Pipeline</a></li><li class="toctree-l3"><a class="reference internal" href="text-search-languages.html">Text Search Languages</a></li></ul></li><li class="toctree-l2"><a class="reference internal" href="../geospatial-queries.html">Geospatial Queries</a><ul><li class="toctree-l3"><a class="reference internal" href="../tutorial/geospatial-tutorial.html">Find Restaurants with Geospatial Queries</a></li><li class="toctree-l3"><a class="reference internal" href="geojson.html">GeoJSON Objects</a></li></ul></li><li class="toctree-l2"><a class="reference internal" href="read-concern.html">Read Isolation (Read Concern)</a><ul><li class="toctree-l3"><a class="reference internal" href="read-concern-local.html">Read Concern <code class="docutils literal"><span class="pre">&quot;local&quot;</span></code></a></li><li class="toctree-l3"><a class="reference internal" href="read-concern-available.html">Read Concern <code class="docutils literal"><span class="pre">&quot;available&quot;</span></code></a></li><li class="toctree-l3"><a class="reference internal" href="read-concern-majority.html">Read Concern <code class="docutils literal"><span class="pre">&quot;majority&quot;</span></code></a></li><li class="toctree-l3"><a class="reference internal" href="read-concern-linearizable.html">Read Concern <code class="docutils literal"><span class="pre">&quot;linearizable&quot;</span></code></a></li><li class="toctree-l3"><a class="reference internal" href="read-concern-snapshot.html">Read Concern <code class="docutils literal"><span class="pre">&quot;snapshot&quot;</span></code></a></li></ul></li><li class="toctree-l2"><a class="reference internal" href="write-concern.html">Write Acknowledgement (Write Concern)</a></li><li class="toctree-l2"><a class="reference internal" href="../core/crud.html">MongoDB CRUD Concepts</a><ul><li class="toctree-l3"><a class="reference internal" href="../core/write-operations-atomicity.html">Atomicity and Transactions</a></li><li class="toctree-l3"><a class="reference internal" href="../core/read-isolation-consistency-recency.html">Read Isolation, Consistency, and Recency</a><ul><li class="toctree-l4"><a class="reference internal" href="../core/causal-consistency-read-write-concerns.html">Causal Consistency and Read and Write Concerns</a></li></ul></li><li class="toctree-l3"><a class="reference internal" href="../core/distributed-queries.html">Distributed Queries</a></li><li class="toctree-l3"><a class="reference internal" href="../tutorial/perform-findAndModify-linearizable-reads.html">Linearizable Reads via <code class="docutils literal"><span class="pre">findAndModify</span></code></a></li><li class="toctree-l3"><a class="reference internal" href="../core/query-plans.html">Query Plans</a></li><li class="toctree-l3"><a class="reference internal" href="../core/query-optimization.html">Query Optimization</a><ul><li class="toctree-l4"><a class="reference internal" href="../tutorial/evaluate-operation-performance.html">Evaluate Performance of Current Operations</a></li><li class="toctree-l4"><a class="reference internal" href="../tutorial/optimize-query-performance-with-indexes-and-projections.html">Optimize Query Performance</a></li><li class="toctree-l4"><a class="reference internal" href="../core/write-performance.html">Write Operation Performance</a></li><li class="toctree-l4"><a class="reference internal" href="explain-results.html">Explain Results</a></li></ul></li><li class="toctree-l3"><a class="reference internal" href="../tutorial/analyze-query-plan.html">Analyze Query Performance</a></li><li class="toctree-l3"><a class="reference internal" href="../core/tailable-cursors.html">Tailable Cursors</a></li></ul></li></ul></li><li class="toctree-l1"><a class="reference internal" href="../aggregation.html">Aggregation</a><ul><li class="toctree-l2"><a class="reference internal" href="../core/aggregation-pipeline.html">Aggregation Pipeline</a><ul><li class="toctree-l3"><a class="reference internal" href="../core/aggregation-pipeline-optimization.html">Aggregation Pipeline Optimization</a></li><li class="toctree-l3"><a class="reference internal" href="../core/aggregation-pipeline-limits.html">Aggregation Pipeline Limits</a></li><li class="toctree-l3"><a class="reference internal" href="../core/aggregation-pipeline-sharded-collections.html">Aggregation Pipeline and Sharded Collections</a></li><li class="toctree-l3"><a class="reference internal" href="../tutorial/aggregation-zip-code-data-set.html">Example with ZIP Code Data</a></li><li class="toctree-l3"><a class="reference internal" href="../tutorial/aggregation-with-user-preference-data.html">Example with User Preference Data</a></li></ul></li><li class="toctree-l2"><a class="reference internal" href="../core/map-reduce.html">Map-Reduce</a><ul><li class="toctree-l3"><a class="reference internal" href="../core/map-reduce-sharded-collections.html">Map-Reduce and Sharded Collections</a></li><li class="toctree-l3"><a class="reference internal" href="../core/map-reduce-concurrency.html">Map-Reduce Concurrency</a></li><li class="toctree-l3"><a class="reference internal" href="../tutorial/map-reduce-examples.html">Map-Reduce Examples</a></li><li class="toctree-l3"><a class="reference internal" href="../tutorial/perform-incremental-map-reduce.html">Perform Incremental Map-Reduce</a></li><li class="toctree-l3"><a class="reference internal" href="../tutorial/troubleshoot-map-function.html">Troubleshoot the Map Function</a></li><li class="toctree-l3"><a class="reference internal" href="../tutorial/troubleshoot-reduce-function.html">Troubleshoot the Reduce Function</a></li></ul></li><li class="toctree-l2"><a class="reference internal" href="aggregation.html">Aggregation Reference</a><ul><li class="toctree-l3"><a class="reference internal" href="../meta/aggregation-quick-reference.html">Aggregation Pipeline Quick Reference</a></li><li class="toctree-l3"><a class="reference internal" href="operator/aggregation/interface.html">Aggregation Commands</a></li><li class="toctree-l3"><a class="reference internal" href="aggregation-commands-comparison.html">Aggregation Commands Comparison</a></li><li class="toctree-l3"><a class="reference internal" href="aggregation-variables.html">Variables in Aggregation Expressions</a></li><li class="toctree-l3"><a class="reference internal" href="sql-aggregation-comparison.html">SQL to Aggregation Mapping Chart</a></li></ul></li></ul></li><li class="toctree-l1"><a class="reference internal" href="../data-modeling.html">Data Models</a><ul><li class="toctree-l2"><a class="reference internal" href="../core/data-modeling-introduction.html">Data Modeling Introduction</a></li><li class="toctree-l2"><a class="reference internal" href="../core/schema-validation.html">Schema Validation</a></li><li class="toctree-l2"><a class="reference internal" href="../core/data-models.html">Data Modeling Concepts</a><ul><li class="toctree-l3"><a class="reference internal" href="../core/data-model-design.html">Data Model Design</a></li><li class="toctree-l3"><a class="reference internal" href="../core/data-model-operations.html">Operational Factors and Data Models</a></li></ul></li><li class="toctree-l2"><a class="reference internal" href="../applications/data-models.html">Data Model Examples and Patterns</a><ul><li class="toctree-l3"><a class="reference internal" href="../applications/data-models-relationships.html">Model Relationships Between Documents</a><ul><li class="toctree-l4"><a class="reference internal" href="../tutorial/model-embedded-one-to-one-relationships-between-documents.html">Model One-to-One Relationships with Embedded Documents</a></li><li class="toctree-l4"><a class="reference internal" href="../tutorial/model-embedded-one-to-many-relationships-between-documents.html">Model One-to-Many Relationships with Embedded Documents</a></li><li class="toctree-l4"><a class="reference internal" href="../tutorial/model-referenced-one-to-many-relationships-between-documents.html">Model One-to-Many Relationships with Document References</a></li></ul></li><li class="toctree-l3"><a class="reference internal" href="../applications/data-models-tree-structures.html">Model Tree Structures</a><ul><li class="toctree-l4"><a class="reference internal" href="../tutorial/model-tree-structures-with-parent-references.html">Model Tree Structures with Parent References</a></li><li class="toctree-l4"><a class="reference internal" href="../tutorial/model-tree-structures-with-child-references.html">Model Tree Structures with Child References</a></li><li class="toctree-l4"><a class="reference internal" href="../tutorial/model-tree-structures-with-ancestors-array.html">Model Tree Structures with an Array of Ancestors</a></li><li class="toctree-l4"><a class="reference internal" href="../tutorial/model-tree-structures-with-materialized-paths.html">Model Tree Structures with Materialized Paths</a></li><li class="toctree-l4"><a class="reference internal" href="../tutorial/model-tree-structures-with-nested-sets.html">Model Tree Structures with Nested Sets</a></li></ul></li><li class="toctree-l3"><a class="reference internal" href="../applications/data-models-applications.html">Model Specific Application Contexts</a><ul><li class="toctree-l4"><a class="reference internal" href="../tutorial/model-data-for-atomic-operations.html">Model Data for Atomic Operations</a></li><li class="toctree-l4"><a class="reference internal" href="../tutorial/model-data-for-keyword-search.html">Model Data to Support Keyword Search</a></li><li class="toctree-l4"><a class="reference internal" href="../tutorial/model-data-for-schema-versioning.html">Model Data for Schema Versioning</a></li><li class="toctree-l4"><a class="reference internal" href="../tutorial/model-monetary-data.html">Model Monetary Data</a></li><li class="toctree-l4"><a class="reference internal" href="../tutorial/model-time-data.html">Model Time Data</a></li><li class="toctree-l4"><a class="reference internal" href="../tutorial/model-computed-data.html">Model Computed Data</a></li></ul></li></ul></li><li class="toctree-l2"><a class="reference internal" href="data-models.html">Data Model Reference</a><ul><li class="toctree-l3"><a class="reference internal" href="database-references.html">Database References</a></li></ul></li></ul></li><li class="toctree-l1"><a class="reference internal" href="../core/transactions.html">Transactions</a><ul><li class="toctree-l2"><a class="reference internal" href="../core/transactions-in-applications.html">Drivers API</a></li><li class="toctree-l2"><a class="reference internal" href="../core/transactions-production-consideration.html">Production Considerations</a></li><li class="toctree-l2"><a class="reference internal" href="../core/transactions-sharded-clusters.html">Production Considerations (Sharded Clusters)</a></li><li class="toctree-l2"><a class="reference internal" href="../core/transactions-operations.html">Transactions and Operations</a></li></ul></li><li class="toctree-l1"><a class="reference internal" href="../indexes.html">Indexes</a><ul><li class="toctree-l2"><a class="reference internal" href="../core/index-single.html">Single Field Indexes</a></li><li class="toctree-l2"><a class="reference internal" href="../core/index-compound.html">Compound Indexes</a></li><li class="toctree-l2"><a class="reference internal" href="../core/index-multikey.html">Multikey Indexes</a><ul><li class="toctree-l3"><a class="reference internal" href="../core/multikey-index-bounds.html">Multikey Index Bounds</a></li></ul></li><li class="toctree-l2"><a class="reference internal" href="../core/index-text.html">Text Indexes</a><ul><li class="toctree-l3"><a class="reference internal" href="../tutorial/specify-language-for-text-index.html">Specify a Language for Text Index</a></li><li class="toctree-l3"><a class="reference internal" href="../tutorial/avoid-text-index-name-limit.html">Specify Name for <code class="docutils literal"><span class="pre">text</span></code> Index</a></li><li class="toctree-l3"><a class="reference internal" href="../tutorial/control-results-of-text-search.html">Control Search Results with Weights</a></li><li class="toctree-l3"><a class="reference internal" href="../tutorial/limit-number-of-items-scanned-for-text-search.html">Limit the Number of Entries Scanned</a></li></ul></li><li class="toctree-l2"><a class="reference internal" href="../core/index-wildcard.html">Wildcard Indexes</a><ul><li class="toctree-l3"><a class="reference internal" href="index-wildcard-restrictions.html">Wildcard Index Restrictions</a></li></ul></li><li class="toctree-l2"><a class="reference internal" href="../core/2dsphere.html"><code class="docutils literal"><span class="pre">2dsphere</span></code> Indexes</a><ul><li class="toctree-l3"><a class="reference internal" href="../tutorial/query-a-2dsphere-index.html">Query a <code class="docutils literal"><span class="pre">2dsphere</span></code> Index</a></li></ul></li><li class="toctree-l2"><a class="reference internal" href="../core/2d.html"><code class="docutils literal"><span class="pre">2d</span></code> Indexes</a><ul><li class="toctree-l3"><a class="reference internal" href="../tutorial/build-a-2d-index.html">Create a <code class="docutils literal"><span class="pre">2d</span></code> Index</a></li><li class="toctree-l3"><a class="reference internal" href="../tutorial/query-a-2d-index.html">Query a <code class="docutils literal"><span class="pre">2d</span></code> Index</a></li><li class="toctree-l3"><a class="reference internal" href="../core/geospatial-indexes.html"><code class="docutils literal"><span class="pre">2d</span></code> Index Internals</a></li><li class="toctree-l3"><a class="reference internal" href="../tutorial/calculate-distances-using-spherical-geometry-with-2d-geospatial-indexes.html">Calculate Distance Using Spherical Geometry</a></li></ul></li><li class="toctree-l2"><a class="reference internal" href="../core/geohaystack.html"><code class="docutils literal"><span class="pre">geoHaystack</span></code> Indexes</a><ul><li class="toctree-l3"><a class="reference internal" href="../tutorial/build-a-geohaystack-index.html">Create a Haystack Index</a></li><li class="toctree-l3"><a class="reference internal" href="../tutorial/query-a-geohaystack-index.html">Query a Haystack Index</a></li></ul></li><li class="toctree-l2"><a class="reference internal" href="../core/index-hashed.html">Hashed Indexes</a></li><li class="toctree-l2"><a class="reference internal" href="../core/index-properties.html">Index Properties</a><ul><li class="toctree-l3"><a class="reference internal" href="../core/index-ttl.html">TTL Indexes</a><ul><li class="toctree-l4"><a class="reference internal" href="../tutorial/expire-data.html">Expire Data from Collections by Setting TTL</a></li></ul></li><li class="toctree-l3"><a class="reference internal" href="../core/index-unique.html">Unique Indexes</a></li><li class="toctree-l3"><a class="reference internal" href="../core/index-partial.html">Partial Indexes</a></li><li class="toctree-l3"><a class="reference internal" href="../core/index-case-insensitive.html">Case Insensitive Indexes</a></li><li class="toctree-l3"><a class="reference internal" href="../core/index-sparse.html">Sparse Indexes</a></li></ul></li><li class="toctree-l2"><a class="reference internal" href="../core/index-creation.html">Index Builds on Populated Collections</a><ul><li class="toctree-l3"><a class="reference internal" href="../tutorial/build-indexes-on-replica-sets.html">Build Indexes on Replica Sets</a></li><li class="toctree-l3"><a class="reference internal" href="../tutorial/build-indexes-on-sharded-clusters.html">Build Indexes on Sharded Clusters</a></li></ul></li><li class="toctree-l2"><a class="reference internal" href="../core/index-intersection.html">Index Intersection</a></li><li class="toctree-l2"><a class="reference internal" href="../tutorial/manage-indexes.html">Manage Indexes</a></li><li class="toctree-l2"><a class="reference internal" href="../tutorial/measure-index-use.html">Measure Index Use</a></li><li class="toctree-l2"><a class="reference internal" href="../applications/indexes.html">Indexing Strategies</a><ul><li class="toctree-l3"><a class="reference internal" href="../tutorial/create-indexes-to-support-queries.html">Create Indexes to Support Your Queries</a></li><li class="toctree-l3"><a class="reference internal" href="../tutorial/sort-results-with-indexes.html">Use Indexes to Sort Query Results</a></li><li class="toctree-l3"><a class="reference internal" href="../tutorial/ensure-indexes-fit-ram.html">Ensure Indexes Fit in RAM</a></li><li class="toctree-l3"><a class="reference internal" href="../tutorial/create-queries-that-ensure-selectivity.html">Create Queries that Ensure Selectivity</a></li></ul></li><li class="toctree-l2"><a class="reference internal" href="indexes.html">Indexing Reference</a></li></ul></li><li class="toctree-l1"><a class="reference internal" href="../security.html">Security</a><ul><li class="toctree-l2"><a class="reference internal" href="../administration/security-checklist.html">Security Checklist</a></li><li class="toctree-l2"><a class="reference internal" href="../tutorial/enable-authentication.html">Enable Access Control</a></li><li class="toctree-l2"><a class="reference internal" href="../core/authentication.html">Authentication</a><ul><li class="toctree-l3"><a class="reference internal" href="../core/security-users.html">Users</a><ul><li class="toctree-l4"><a class="reference internal" href="../tutorial/create-users.html">Add Users</a></li></ul></li><li class="toctree-l3"><a class="reference internal" href="../core/authentication-mechanisms.html">Authentication Mechanisms</a><ul><li class="toctree-l4"><a class="reference internal" href="../core/security-scram.html">SCRAM</a></li><li class="toctree-l4"><a class="reference internal" href="../core/security-x.509.html">x.509</a><ul><li class="toctree-l5"><a class="reference internal" href="../tutorial/configure-x509-client-authentication.html">Use x.509 Certificates to Authenticate Clients</a></li></ul></li></ul></li><li class="toctree-l3"><a class="reference internal" href="../core/authentication-mechanisms-enterprise.html">Enterprise Authentication Mechanisms</a><ul><li class="toctree-l4"><a class="reference internal" href="../core/kerberos.html">Kerberos Authentication</a><ul><li class="toctree-l5"><a class="reference internal" href="../tutorial/control-access-to-mongodb-with-kerberos-authentication.html">Configure MongoDB with Kerberos Authentication on Linux</a></li><li class="toctree-l5"><a class="reference internal" href="../tutorial/control-access-to-mongodb-windows-with-kerberos-authentication.html">Configure MongoDB with Kerberos Authentication on Windows</a></li><li class="toctree-l5"><a class="reference internal" href="../tutorial/troubleshoot-kerberos.html">Troubleshoot Kerberos Authentication</a></li><li class="toctree-l5"><a class="reference internal" href="../tutorial/kerberos-auth-activedirectory-authz.html">Configure MongoDB with Kerberos Authentication and Active Directory Authorization</a></li></ul></li><li class="toctree-l4"><a class="reference internal" href="../core/security-ldap.html">LDAP Proxy Authentication</a><ul><li class="toctree-l5"><a class="reference internal" href="../tutorial/configure-ldap-sasl-activedirectory.html">Authenticate Using SASL and LDAP with ActiveDirectory</a></li><li class="toctree-l5"><a class="reference internal" href="../tutorial/configure-ldap-sasl-openldap.html">Authenticate Using SASL and LDAP with OpenLDAP</a></li><li class="toctree-l5"><a class="reference internal" href="../tutorial/authenticate-nativeldap-activedirectory.html">Authenticate and Authorize Users Using Active Directory via Native LDAP</a></li></ul></li><li class="toctree-l4"><a class="reference internal" href="../core/security-ldap-external.html">LDAP Authorization</a></li></ul></li><li class="toctree-l3"><a class="reference internal" href="../core/security-internal-authentication.html">Internal/Membership Authentication</a><ul><li class="toctree-l4"><a class="reference internal" href="../tutorial/deploy-replica-set-with-keyfile-access-control.html">Deploy Replica Set With Keyfile Authentication</a></li><li class="toctree-l4"><a class="reference internal" href="../tutorial/enforce-keyfile-access-control-in-existing-replica-set.html">Update Replica Set to Keyfile Authentication</a></li><li class="toctree-l4"><a class="reference internal" href="../tutorial/enforce-keyfile-access-control-in-existing-replica-set-without-downtime.html">Update Replica Set to Keyfile Authentication (No Downtime)</a></li><li class="toctree-l4"><a class="reference internal" href="../tutorial/rotate-key-replica-set.html">Rotate Keys for Replica Sets</a></li><li class="toctree-l4"><a class="reference internal" href="../tutorial/deploy-sharded-cluster-with-keyfile-access-control.html">Deploy Sharded Cluster with Keyfile Authentication</a></li><li class="toctree-l4"><a class="reference internal" href="../tutorial/enforce-keyfile-access-control-in-existing-sharded-cluster.html">Update Sharded Cluster to Keyfile Authentication</a></li><li class="toctree-l4"><a class="reference internal" href="../tutorial/enforce-keyfile-access-control-in-existing-sharded-cluster-no-downtime.html">Update Sharded Cluster to Keyfile Authentication (No Downtime)</a></li><li class="toctree-l4"><a class="reference internal" href="../tutorial/rotate-key-sharded-cluster.html">Rotate Keys for Sharded Clusters</a></li><li class="toctree-l4"><a class="reference internal" href="../tutorial/configure-x509-member-authentication.html">Use x.509 Certificate for Membership Authentication</a></li><li class="toctree-l4"><a class="reference internal" href="../tutorial/upgrade-keyfile-to-x509.html">Upgrade from Keyfile Authentication to x.509 Authentication</a></li><li class="toctree-l4"><a class="reference internal" href="../tutorial/rotate-x509-membership-certificates.html">Rolling Update of x.509 Cluster Certificates that Contain New DN</a></li></ul></li></ul></li><li class="toctree-l2"><a class="reference internal" href="../core/authorization.html">Role-Based Access Control</a><ul><li class="toctree-l3"><a class="reference internal" href="built-in-roles.html">Built-In Roles</a></li><li class="toctree-l3"><a class="reference internal" href="../core/security-user-defined-roles.html">User-Defined Roles</a></li><li class="toctree-l3"><a class="reference internal" href="../tutorial/manage-users-and-roles.html">Manage Users and Roles</a></li><li class="toctree-l3"><a class="reference internal" href="../tutorial/change-own-password-and-custom-data.html">Change Your Password and Custom Data</a></li><li class="toctree-l3"><a class="reference internal" href="../core/collection-level-access-control.html">Collection-Level Access Control</a></li></ul></li><li class="toctree-l2"><a class="reference internal" href="../core/security-transport-encryption.html">TLS/SSL (Transport Encryption)</a><ul><li class="toctree-l3"><a class="reference internal" href="../tutorial/configure-ssl.html">Configure <code class="docutils literal"><span class="pre">mongod</span></code> and <code class="docutils literal"><span class="pre">mongos</span></code> for TLS/SSL</a></li><li class="toctree-l3"><a class="reference internal" href="../tutorial/configure-ssl-clients.html">TLS/SSL Configuration for Clients</a></li><li class="toctree-l3"><a class="reference internal" href="../tutorial/upgrade-cluster-to-ssl.html">Upgrade a Cluster to Use TLS/SSL</a></li><li class="toctree-l3"><a class="reference internal" href="../tutorial/configure-fips.html">Configure MongoDB for FIPS</a></li></ul></li><li class="toctree-l2"><a class="reference internal" href="../core/security-encryption-at-rest.html">Encryption at Rest</a><ul><li class="toctree-l3"><a class="reference internal" href="../tutorial/configure-encryption.html">Configure Encryption</a></li><li class="toctree-l3"><a class="reference internal" href="../tutorial/rotate-encryption-key.html">Rotate Encryption Keys</a></li></ul></li><li class="toctree-l2"><a class="reference internal" href="../core/security-client-side-encryption.html">Client-Side Field Level Encryption</a><ul><li class="toctree-l3"><a class="reference internal" href="../core/security-automatic-client-side-encryption.html">Automatic Client-Side Field Level Encryption</a><ul><li class="toctree-l4"><a class="reference internal" href="security-client-side-automatic-json-schema.html">Automatic Encryption Rules</a></li><li class="toctree-l4"><a class="reference internal" href="security-client-side-query-aggregation-support.html">Read/Write Support with Automatic Field Level Encryption</a></li><li class="toctree-l4"><a class="reference internal" href="security-client-side-encryption-appendix.html">Appendix</a></li></ul></li><li class="toctree-l3"><a class="reference internal" href="../core/security-explicit-client-side-encryption.html">Explicit (Manual) Client-Side Field Level Encryption</a></li><li class="toctree-l3"><a class="reference internal" href="../core/security-client-side-encryption-key-management.html">Master Key and Data Encryption Key Management</a><ul><li class="toctree-l4"><a class="reference internal" href="../tutorial/manage-client-side-encryption-data-keys.html">Manage Data Encryption Keys</a></li></ul></li><li class="toctree-l3"><a class="reference internal" href="security-client-side-encryption-limitations.html">Limitations</a></li></ul></li><li class="toctree-l2"><a class="reference internal" href="../core/auditing.html">Auditing</a><ul><li class="toctree-l3"><a class="reference internal" href="../tutorial/configure-auditing.html">Configure Auditing</a></li><li class="toctree-l3"><a class="reference internal" href="../tutorial/configure-audit-filters.html">Configure Audit Filters</a></li><li class="toctree-l3"><a class="reference internal" href="audit-message.html">System Event Audit Messages</a></li></ul></li><li class="toctree-l2"><a class="reference internal" href="../core/security-hardening.html">Network and Configuration Hardening</a><ul><li class="toctree-l3"><a class="reference internal" href="../core/security-mongodb-configuration.html">IP Binding</a></li><li class="toctree-l3"><a class="reference internal" href="../tutorial/configure-linux-iptables-firewall.html">Configure Linux <code class="docutils literal"><span class="pre">iptables</span></code> Firewall for MongoDB</a></li><li class="toctree-l3"><a class="reference internal" href="../tutorial/configure-windows-netsh-firewall.html">Configure Windows <code class="docutils literal"><span class="pre">netsh</span></code> Firewall for MongoDB</a></li></ul></li><li class="toctree-l2"><a class="reference internal" href="../tutorial/implement-field-level-redaction.html">Implement Field Level Redaction</a></li><li class="toctree-l2"><a class="reference internal" href="security.html">Security Reference</a><ul><li class="toctree-l3"><a class="reference internal" href="system-roles-collection.html"><code class="docutils literal"><span class="pre">system.roles</span></code> Collection</a></li><li class="toctree-l3"><a class="reference internal" href="system-users-collection.html"><code class="docutils literal"><span class="pre">system.users</span></code> Collection</a></li><li class="toctree-l3"><a class="reference internal" href="resource-document.html">Resource Document</a></li><li class="toctree-l3"><a class="reference internal" href="privilege-actions.html">Privilege Actions</a></li></ul></li><li class="toctree-l2"><a class="reference internal" href="../tutorial/create-a-vulnerability-report.html">Create a Vulnerability Report</a></li><li class="toctree-l2"><a class="reference internal" href="../appendix/security.html">Appendix</a><ul><li class="toctree-l3"><a class="reference internal" href="../appendix/security/appendixA-openssl-ca.html">Appendix A - OpenSSL CA Certificate for Testing</a></li><li class="toctree-l3"><a class="reference internal" href="../appendix/security/appendixB-openssl-server.html">Appendix B - OpenSSL Server Certificates for Testing</a></li><li class="toctree-l3"><a class="reference internal" href="../appendix/security/appendixC-openssl-client.html">Appendix C - OpenSSL Client Certificates for Testing</a></li></ul></li></ul></li><li class="toctree-l1"><a class="reference internal" href="../changeStreams.html">Change Streams</a><ul><li class="toctree-l2"><a class="reference internal" href="../administration/change-streams-production-recommendations.html">Change Streams Production Recommendations</a></li><li class="toctree-l2"><a class="reference internal" href="change-events.html">Change Events</a></li></ul></li><li class="toctree-l1"><a class="reference internal" href="../replication.html">Replication</a><ul><li class="toctree-l2"><a class="reference internal" href="../core/replica-set-members.html">Replica Set Members</a><ul><li class="toctree-l3"><a class="reference internal" href="../core/replica-set-primary.html">Replica Set Primary</a></li><li class="toctree-l3"><a class="reference internal" href="../core/replica-set-secondary.html">Replica Set Secondary Members</a><ul><li class="toctree-l4"><a class="reference internal" href="../core/replica-set-priority-0-member.html">Priority 0 Replica Set Members</a></li><li class="toctree-l4"><a class="reference internal" href="../core/replica-set-hidden-member.html">Hidden Replica Set Members</a></li><li class="toctree-l4"><a class="reference internal" href="../core/replica-set-delayed-member.html">Delayed Replica Set Members</a></li></ul></li><li class="toctree-l3"><a class="reference internal" href="../core/replica-set-arbiter.html">Replica Set Arbiter</a></li></ul></li><li class="toctree-l2"><a class="reference internal" href="../core/replica-set-oplog.html">Replica Set Oplog</a></li><li class="toctree-l2"><a class="reference internal" href="../core/replica-set-sync.html">Replica Set Data Synchronization</a></li><li class="toctree-l2"><a class="reference internal" href="../core/replica-set-architectures.html">Replica Set Deployment Architectures</a><ul><li class="toctree-l3"><a class="reference internal" href="../core/replica-set-architecture-three-members.html">Three Member Replica Sets</a></li><li class="toctree-l3"><a class="reference internal" href="../core/replica-set-architecture-geographically-distributed.html">Replica Sets Distributed Across Two or More Data Centers</a></li></ul></li><li class="toctree-l2"><a class="reference internal" href="../core/replica-set-high-availability.html">Replica Set High Availability</a><ul><li class="toctree-l3"><a class="reference internal" href="../core/replica-set-elections.html">Replica Set Elections</a></li><li class="toctree-l3"><a class="reference internal" href="../core/replica-set-rollbacks.html">Rollbacks During Replica Set Failover</a></li></ul></li><li class="toctree-l2"><a class="reference internal" href="../applications/replication.html">Replica Set Read and Write Semantics</a><ul><li class="toctree-l3"><a class="reference internal" href="../core/replica-set-write-concern.html">Write Concern for Replica Sets</a></li><li class="toctree-l3"><a class="reference internal" href="../core/read-preference.html">Read Preference</a><ul><li class="toctree-l4"><a class="reference internal" href="../core/read-preference-tags.html">Tag Sets</a></li><li class="toctree-l4"><a class="reference internal" href="../core/read-preference-staleness.html">maxStalenessSeconds</a></li><li class="toctree-l4"><a class="reference internal" href="../core/read-preference-use-cases.html">Read Preference Use Cases</a></li></ul></li><li class="toctree-l3"><a class="reference internal" href="../core/read-preference-mechanics.html">Server Selection Algorithm</a></li></ul></li><li class="toctree-l2"><a class="reference internal" href="../administration/replica-set-deployment.html">Replica Set Deployment Tutorials</a><ul><li class="toctree-l3"><a class="reference internal" href="../tutorial/deploy-replica-set.html">Deploy a Replica Set</a></li><li class="toctree-l3"><a class="reference internal" href="../tutorial/deploy-replica-set-for-testing.html">Deploy a Replica Set for Testing and Development</a></li><li class="toctree-l3"><a class="reference internal" href="../tutorial/deploy-geographically-distributed-replica-set.html">Deploy a Geographically Redundant Replica Set</a></li><li class="toctree-l3"><a class="reference internal" href="../tutorial/add-replica-set-arbiter.html">Add an Arbiter to Replica Set</a></li><li class="toctree-l3"><a class="reference internal" href="../tutorial/convert-standalone-to-replica-set.html">Convert a Standalone to a Replica Set</a></li><li class="toctree-l3"><a class="reference internal" href="../tutorial/expand-replica-set.html">Add Members to a Replica Set</a></li><li class="toctree-l3"><a class="reference internal" href="../tutorial/remove-replica-set-member.html">Remove Members from Replica Set</a></li><li class="toctree-l3"><a class="reference internal" href="../tutorial/replace-replica-set-member.html">Replace a Replica Set Member</a></li></ul></li><li class="toctree-l2"><a class="reference internal" href="../administration/replica-set-member-configuration.html">Member Configuration Tutorials</a><ul><li class="toctree-l3"><a class="reference internal" href="../tutorial/adjust-replica-set-member-priority.html">Adjust Priority for Replica Set Member</a></li><li class="toctree-l3"><a class="reference internal" href="../tutorial/configure-secondary-only-replica-set-member.html">Prevent Secondary from Becoming Primary</a></li><li class="toctree-l3"><a class="reference internal" href="../tutorial/configure-a-hidden-replica-set-member.html">Configure a Hidden Replica Set Member</a></li><li class="toctree-l3"><a class="reference internal" href="../tutorial/configure-a-delayed-replica-set-member.html">Configure a Delayed Replica Set Member</a></li><li class="toctree-l3"><a class="reference internal" href="../tutorial/configure-a-non-voting-replica-set-member.html">Configure Non-Voting Replica Set Member</a></li><li class="toctree-l3"><a class="reference internal" href="../tutorial/convert-secondary-into-arbiter.html">Convert a Secondary to an Arbiter</a></li></ul></li><li class="toctree-l2"><a class="reference internal" href="../administration/replica-set-maintenance.html">Replica Set Maintenance Tutorials</a><ul><li class="toctree-l3"><a class="reference internal" href="../tutorial/change-oplog-size.html">Change the Size of the Oplog</a></li><li class="toctree-l3"><a class="reference internal" href="../tutorial/perform-maintence-on-replica-set-members.html">Perform Maintenance on Replica Set Members</a></li><li class="toctree-l3"><a class="reference internal" href="../tutorial/force-member-to-be-primary.html">Force a Member to Become Primary</a></li><li class="toctree-l3"><a class="reference internal" href="../tutorial/resync-replica-set-member.html">Resync a Member of a Replica Set</a></li><li class="toctree-l3"><a class="reference internal" href="../tutorial/configure-replica-set-tag-sets.html">Configure Replica Set Tag Sets</a></li><li class="toctree-l3"><a class="reference internal" href="../tutorial/reconfigure-replica-set-with-unavailable-members.html">Reconfigure a Replica Set with Unavailable Members</a></li><li class="toctree-l3"><a class="reference internal" href="../tutorial/manage-chained-replication.html">Manage Chained Replication</a></li><li class="toctree-l3"><a class="reference internal" href="../tutorial/change-hostnames-in-a-replica-set.html">Change Hostnames in a Replica Set</a></li><li class="toctree-l3"><a class="reference internal" href="../tutorial/configure-replica-set-secondary-sync-target.html">Configure a Secondary’s Sync Target</a></li></ul></li><li class="toctree-l2"><a class="reference internal" href="replication.html">Replication Reference</a><ul><li class="toctree-l3"><a class="reference internal" href="replica-configuration.html">Replica Set Configuration</a></li><li class="toctree-l3"><a class="reference internal" href="replica-set-protocol-versions.html">Replica Set Protocol Version</a></li><li class="toctree-l3"><a class="reference internal" href="../tutorial/troubleshoot-replica-sets.html">Troubleshoot Replica Sets</a></li><li class="toctree-l3"><a class="reference internal" href="local-database.html">The <code class="docutils literal"><span class="pre">local</span></code> Database</a></li><li class="toctree-l3"><a class="reference internal" href="replica-states.html">Replica Set Member States</a></li></ul></li></ul></li><li class="toctree-l1"><a class="reference internal" href="../sharding.html">Sharding</a><ul><li class="toctree-l2"><a class="reference internal" href="../core/sharded-cluster-components.html">Sharded Cluster Components</a><ul><li class="toctree-l3"><a class="reference internal" href="../core/sharded-cluster-shards.html">Shards</a></li><li class="toctree-l3"><a class="reference internal" href="../core/sharded-cluster-config-servers.html">Config Servers (metadata)</a></li><li class="toctree-l3"><a class="reference internal" href="../core/sharded-cluster-query-router.html">Router (mongos)</a></li></ul></li><li class="toctree-l2"><a class="reference internal" href="../core/sharding-shard-key.html">Shard Keys</a></li><li class="toctree-l2"><a class="reference internal" href="../core/hashed-sharding.html">Hashed Sharding</a></li><li class="toctree-l2"><a class="reference internal" href="../core/ranged-sharding.html">Ranged Sharding</a></li><li class="toctree-l2"><a class="reference internal" href="../tutorial/deploy-shard-cluster.html">Deploy a Sharded Cluster</a></li><li class="toctree-l2"><a class="reference internal" href="../core/zone-sharding.html">Zones</a><ul><li class="toctree-l3"><a class="reference internal" href="../tutorial/manage-shard-zone.html">Manage Shard Zones</a></li><li class="toctree-l3"><a class="reference internal" href="../tutorial/sharding-segmenting-data-by-location.html">Segmenting Data by Location</a></li><li class="toctree-l3"><a class="reference internal" href="../tutorial/sharding-tiered-hardware-for-varying-slas.html">Tiered Hardware for Varying SLA or SLO</a></li><li class="toctree-l3"><a class="reference internal" href="../tutorial/sharding-segmenting-shards.html">Segmenting Data by Application or Customer</a></li><li class="toctree-l3"><a class="reference internal" href="../tutorial/sharding-high-availability-writes.html">Distributed Local Writes for Insert Only Workloads</a></li></ul></li><li class="toctree-l2"><a class="reference internal" href="../core/sharding-data-partitioning.html">Data Partitioning with Chunks</a><ul><li class="toctree-l3"><a class="reference internal" href="../tutorial/create-chunks-in-sharded-cluster.html">Create Chunks in a Sharded Cluster</a></li><li class="toctree-l3"><a class="reference internal" href="../tutorial/split-chunks-in-sharded-cluster.html">Split Chunks in a Sharded Cluster</a></li><li class="toctree-l3"><a class="reference internal" href="../tutorial/merge-chunks-in-sharded-cluster.html">Merge Chunks in a Sharded Cluster</a></li><li class="toctree-l3"><a class="reference internal" href="../tutorial/modify-chunk-size-in-sharded-cluster.html">Modify Chunk Size in a Sharded Cluster</a></li></ul></li><li class="toctree-l2"><a class="reference internal" href="../core/sharding-balancer-administration.html">Balancer</a><ul><li class="toctree-l3"><a class="reference internal" href="../tutorial/manage-sharded-cluster-balancer.html">Manage Sharded Cluster Balancer</a></li><li class="toctree-l3"><a class="reference internal" href="../tutorial/migrate-chunks-in-sharded-cluster.html">Migrate Chunks in a Sharded Cluster</a></li></ul></li><li class="toctree-l2"><a class="reference internal" href="../administration/sharded-cluster-administration.html">Administration</a><ul><li class="toctree-l3"><a class="reference internal" href="../administration/sharded-cluster-config-servers.html">Config Server Administration</a><ul><li class="toctree-l4"><a class="reference internal" href="../tutorial/replace-config-server.html">Replace a Config Server</a></li></ul></li><li class="toctree-l3"><a class="reference internal" href="../tutorial/view-sharded-cluster-configuration.html">View Cluster Configuration</a></li><li class="toctree-l3"><a class="reference internal" href="../tutorial/restart-sharded-cluster.html">Restart a Sharded Cluster</a></li><li class="toctree-l3"><a class="reference internal" href="../tutorial/migrate-sharded-cluster-to-new-hardware.html">Migrate a Sharded Cluster to Different Hardware</a></li><li class="toctree-l3"><a class="reference internal" href="../tutorial/add-shards-to-shard-cluster.html">Add Shards to a Cluster</a></li><li class="toctree-l3"><a class="reference internal" href="../tutorial/remove-shards-from-cluster.html">Remove Shards from an Existing Sharded Cluster</a></li><li class="toctree-l3"><a class="reference internal" href="../tutorial/clear-jumbo-flag.html">Clear <code class="docutils literal"><span class="pre">jumbo</span></code> Flag</a></li><li class="toctree-l3"><a class="reference internal" href="../tutorial/backup-sharded-cluster-metadata.html">Back Up Cluster Metadata</a></li><li class="toctree-l3"><a class="reference internal" href="../tutorial/convert-sharded-cluster-to-replica-set.html">Convert Sharded Cluster to Replica Set</a></li><li class="toctree-l3"><a class="reference internal" href="../tutorial/convert-replica-set-to-replicated-shard-cluster.html">Convert a Replica Set to a Sharded Cluster</a></li><li class="toctree-l3"><a class="reference internal" href="../tutorial/convert-shard-standalone-to-shard-replica-set.html">Convert a Shard Standalone to a Shard Replica Set</a></li></ul></li><li class="toctree-l2"><a class="reference internal" href="sharding.html">Sharding Reference</a><ul><li class="toctree-l3"><a class="reference internal" href="../core/sharded-cluster-requirements.html">Operational Restrictions</a></li><li class="toctree-l3"><a class="reference internal" href="../tutorial/troubleshoot-sharded-clusters.html">Troubleshoot Sharded Clusters</a></li><li class="toctree-l3"><a class="reference internal" href="config-database.html">Config Database</a></li></ul></li></ul></li><li class="toctree-l1"><a class="reference internal" href="../administration.html">Administration</a><ul><li class="toctree-l2"><a class="reference internal" href="../administration/production-notes.html">Production Notes</a></li><li class="toctree-l2"><a class="reference internal" href="../administration/production-checklist-operations.html">Operations Checklist</a></li><li class="toctree-l2"><a class="reference internal" href="../administration/production-checklist-development.html">Development Checklist</a></li><li class="toctree-l2"><a class="reference internal" href="../administration/analyzing-mongodb-performance.html">Performance</a><ul><li class="toctree-l3"><a class="reference internal" href="../tutorial/manage-the-database-profiler.html">Database Profiler</a><ul><li class="toctree-l4"><a class="reference internal" href="database-profiler.html">Database Profiler Output</a></li></ul></li><li class="toctree-l3"><a class="reference internal" href="../tutorial/transparent-huge-pages.html">Disable Transparent Huge Pages (THP)</a></li><li class="toctree-l3"><a class="reference internal" href="ulimit.html">UNIX <code class="docutils literal"><span class="pre">ulimit</span></code> Settings</a></li></ul></li><li class="toctree-l2"><a class="reference internal" href="../administration/configuration-and-maintenance.html">Configuration and Maintenance</a><ul><li class="toctree-l3"><a class="reference internal" href="../administration/configuration.html">Run-time Database Configuration</a></li><li class="toctree-l3"><a class="reference internal" href="../tutorial/upgrade-revision.html">Upgrade to the Latest Revision of MongoDB</a></li><li class="toctree-l3"><a class="reference internal" href="../tutorial/manage-mongodb-processes.html">Manage <code class="docutils literal"><span class="pre">mongod</span></code> Processes</a></li><li class="toctree-l3"><a class="reference internal" href="../tutorial/terminate-running-operations.html">Terminate Running Operations</a></li><li class="toctree-l3"><a class="reference internal" href="../tutorial/rotate-log-files.html">Rotate Log Files</a></li></ul></li><li class="toctree-l2"><a class="reference internal" href="../data-center-awareness.html">Data Center Awareness</a><ul><li class="toctree-l3"><a class="reference internal" href="../core/workload-isolation.html">Workload Isolation in MongoDB Deployments</a></li><li class="toctree-l3"><a class="reference internal" href="../core/zone-sharding.html">Zones</a><ul><li class="toctree-l4"><a class="reference internal" href="../tutorial/manage-shard-zone.html">Manage Shard Zones</a></li><li class="toctree-l4"><a class="reference internal" href="../tutorial/sharding-segmenting-data-by-location.html">Segmenting Data by Location</a></li><li class="toctree-l4"><a class="reference internal" href="../tutorial/sharding-tiered-hardware-for-varying-slas.html">Tiered Hardware for Varying SLA or SLO</a></li><li class="toctree-l4"><a class="reference internal" href="../tutorial/sharding-segmenting-shards.html">Segmenting Data by Application or Customer</a></li><li class="toctree-l4"><a class="reference internal" href="../tutorial/sharding-high-availability-writes.html">Distributed Local Writes for Insert Only Workloads</a></li></ul></li><li class="toctree-l3"><a class="reference internal" href="../tutorial/manage-shard-zone.html">Manage Shard Zones</a></li></ul></li><li class="toctree-l2"><a class="reference internal" href="../core/backups.html">MongoDB Backup Methods</a><ul><li class="toctree-l3"><a class="reference internal" href="../tutorial/backup-with-filesystem-snapshots.html">Back Up and Restore with Filesystem Snapshots</a></li><li class="toctree-l3"><a class="reference internal" href="../tutorial/backup-and-restore-tools.html">Back Up and Restore with MongoDB Tools</a></li><li class="toctree-l3"><a class="reference internal" href="../tutorial/restore-replica-set-from-backup.html">Restore a Replica Set from MongoDB Backups</a></li><li class="toctree-l3"><a class="reference internal" href="../administration/backup-sharded-clusters.html">Backup and Restore Sharded Clusters</a><ul><li class="toctree-l4"><a class="reference internal" href="../tutorial/backup-sharded-cluster-with-filesystem-snapshots.html">Back Up a Sharded Cluster with File System Snapshots</a></li><li class="toctree-l4"><a class="reference internal" href="../tutorial/backup-sharded-cluster-with-database-dumps.html">Back Up a Sharded Cluster with Database Dumps</a></li><li class="toctree-l4"><a class="reference internal" href="../tutorial/schedule-backup-window-for-sharded-clusters.html">Schedule Backup Window for Sharded Clusters</a></li><li class="toctree-l4"><a class="reference internal" href="../tutorial/restore-sharded-cluster.html">Restore a Sharded Cluster</a></li></ul></li><li class="toctree-l3"><a class="reference internal" href="../tutorial/recover-data-following-unexpected-shutdown.html">Recover a Standalone after an Unexpected Shutdown</a></li></ul></li><li class="toctree-l2"><a class="reference internal" href="../administration/monitoring.html">Monitoring for MongoDB</a><ul><li class="toctree-l3"><a class="reference internal" href="../administration/free-monitoring.html">Free Monitoring</a></li><li class="toctree-l3"><a class="reference internal" href="../tutorial/monitor-with-snmp.html">Monitor MongoDB With SNMP on Linux</a></li><li class="toctree-l3"><a class="reference internal" href="../tutorial/monitor-with-snmp-on-windows.html">Monitor MongoDB Windows with SNMP</a></li><li class="toctree-l3"><a class="reference internal" href="../tutorial/troubleshoot-snmp.html">Troubleshoot SNMP</a></li></ul></li></ul></li><li class="toctree-l1"><a class="reference internal" href="../storage.html">Storage</a><ul><li class="toctree-l2"><a class="reference internal" href="../core/storage-engines.html">Storage Engines</a><ul><li class="toctree-l3"><a class="reference internal" href="../core/wiredtiger.html">WiredTiger Storage Engine</a><ul><li class="toctree-l4"><a class="reference internal" href="../tutorial/change-standalone-wiredtiger.html">Change Standalone to WiredTiger</a></li><li class="toctree-l4"><a class="reference internal" href="../tutorial/change-replica-set-wiredtiger.html">Change Replica Set to WiredTiger</a></li><li class="toctree-l4"><a class="reference internal" href="../tutorial/change-sharded-cluster-wiredtiger.html">Change Sharded Cluster to WiredTiger</a></li></ul></li><li class="toctree-l3"><a class="reference internal" href="../core/inmemory.html">In-Memory Storage Engine</a></li></ul></li><li class="toctree-l2"><a class="reference internal" href="../core/journaling.html">Journaling</a><ul><li class="toctree-l3"><a class="reference internal" href="../tutorial/manage-journaling.html">Manage Journaling</a></li></ul></li><li class="toctree-l2"><a class="reference internal" href="../core/gridfs.html">GridFS</a></li><li class="toctree-l2"><a class="reference internal" href="../faq/storage.html">FAQ: MongoDB Storage</a></li></ul></li><li class="toctree-l1"><a class="reference internal" href="../faq.html">Frequently Asked Questions</a><ul><li class="toctree-l2"><a class="reference internal" href="../faq/fundamentals.html">FAQ: MongoDB Fundamentals</a></li><li class="toctree-l2"><a class="reference internal" href="../faq/indexes.html">FAQ: Indexes</a></li><li class="toctree-l2"><a class="reference internal" href="../faq/concurrency.html">FAQ: Concurrency</a></li><li class="toctree-l2"><a class="reference internal" href="../faq/sharding.html">FAQ: Sharding with MongoDB</a></li><li class="toctree-l2"><a class="reference internal" href="../faq/replica-sets.html">FAQ: Replication and Replica Sets</a></li><li class="toctree-l2"><a class="reference internal" href="../faq/storage.html">FAQ: MongoDB Storage</a></li><li class="toctree-l2"><a class="reference internal" href="../faq/diagnostics.html">FAQ: MongoDB Diagnostics</a></li></ul></li><li class="toctree-l1 current"><a class="reference internal" href="../reference.html">Reference</a><ul class="current"><li class="toctree-l2"><a class="reference internal" href="operator.html">Operators</a><ul><li class="toctree-l3"><a class="reference internal" href="operator/query.html">Query and Projection Operators</a><ul><li class="toctree-l4"><a class="reference internal" href="operator/query-comparison.html">Comparison Query Operators</a><ul><li class="toctree-l5"><a class="reference internal" href="operator/query/eq.html">$eq</a></li><li class="toctree-l5"><a class="reference internal" href="operator/query/gt.html">$gt</a></li><li class="toctree-l5"><a class="reference internal" href="operator/query/gte.html">$gte</a></li><li class="toctree-l5"><a class="reference internal" href="operator/query/in.html">$in</a></li><li class="toctree-l5"><a class="reference internal" href="operator/query/lt.html">$lt</a></li><li class="toctree-l5"><a class="reference internal" href="operator/query/lte.html">$lte</a></li><li class="toctree-l5"><a class="reference internal" href="operator/query/ne.html">$ne</a></li><li class="toctree-l5"><a class="reference internal" href="operator/query/nin.html">$nin</a></li></ul></li><li class="toctree-l4"><a class="reference internal" href="operator/query-logical.html">Logical Query Operators</a><ul><li class="toctree-l5"><a class="reference internal" href="operator/query/and.html">$and</a></li><li class="toctree-l5"><a class="reference internal" href="operator/query/not.html">$not</a></li><li class="toctree-l5"><a class="reference internal" href="operator/query/nor.html">$nor</a></li><li class="toctree-l5"><a class="reference internal" href="operator/query/or.html">$or</a></li></ul></li><li class="toctree-l4"><a class="reference internal" href="operator/query-element.html">Element Query Operators</a><ul><li class="toctree-l5"><a class="reference internal" href="operator/query/exists.html">$exists</a></li><li class="toctree-l5"><a class="reference internal" href="operator/query/type.html">$type</a></li></ul></li><li class="toctree-l4"><a class="reference internal" href="operator/query-evaluation.html">Evaluation Query Operators</a><ul><li class="toctree-l5"><a class="reference internal" href="operator/query/expr.html">$expr</a></li><li class="toctree-l5"><a class="reference internal" href="operator/query/jsonSchema.html">$jsonSchema</a></li><li class="toctree-l5"><a class="reference internal" href="operator/query/mod.html">$mod</a></li><li class="toctree-l5"><a class="reference internal" href="operator/query/regex.html">$regex</a></li><li class="toctree-l5"><a class="reference internal" href="operator/query/text.html">$text</a></li><li class="toctree-l5"><a class="reference internal" href="operator/query/where.html">$where</a></li></ul></li><li class="toctree-l4"><a class="reference internal" href="operator/query-geospatial.html">Geospatial Query Operators</a><ul><li class="toctree-l5"><a class="reference internal" href="operator/query/geoIntersects.html">$geoIntersects</a></li><li class="toctree-l5"><a class="reference internal" href="operator/query/geoWithin.html">$geoWithin</a></li><li class="toctree-l5"><a class="reference internal" href="operator/query/near.html">$near</a></li><li class="toctree-l5"><a class="reference internal" href="operator/query/nearSphere.html">$nearSphere</a></li><li class="toctree-l5"><a class="reference internal" href="operator/query/box.html">$box</a></li><li class="toctree-l5"><a class="reference internal" href="operator/query/center.html">$center</a></li><li class="toctree-l5"><a class="reference internal" href="operator/query/centerSphere.html">$centerSphere</a></li><li class="toctree-l5"><a class="reference internal" href="operator/query/geometry.html">$geometry</a></li><li class="toctree-l5"><a class="reference internal" href="operator/query/maxDistance.html">$maxDistance</a></li><li class="toctree-l5"><a class="reference internal" href="operator/query/minDistance.html">$minDistance</a></li><li class="toctree-l5"><a class="reference internal" href="operator/query/polygon.html">$polygon</a></li><li class="toctree-l5"><a class="reference internal" href="operator/query/uniqueDocs.html">$uniqueDocs</a></li></ul></li><li class="toctree-l4"><a class="reference internal" href="operator/query-array.html">Array Query Operators</a><ul><li class="toctree-l5"><a class="reference internal" href="operator/query/all.html">$all</a></li><li class="toctree-l5"><a class="reference internal" href="operator/query/elemMatch.html">$elemMatch (query)</a></li><li class="toctree-l5"><a class="reference internal" href="operator/query/size.html">$size</a></li></ul></li><li class="toctree-l4"><a class="reference internal" href="operator/query-bitwise.html">Bitwise Query Operators</a><ul><li class="toctree-l5"><a class="reference internal" href="operator/query/bitsAllClear.html">$bitsAllClear</a></li><li class="toctree-l5"><a class="reference internal" href="operator/query/bitsAllSet.html">$bitsAllSet</a></li><li class="toctree-l5"><a class="reference internal" href="operator/query/bitsAnyClear.html">$bitsAnyClear</a></li><li class="toctree-l5"><a class="reference internal" href="operator/query/bitsAnySet.html">$bitsAnySet</a></li></ul></li><li class="toctree-l4"><a class="reference internal" href="operator/query/comment.html">$comment</a></li><li class="toctree-l4"><a class="reference internal" href="operator/projection.html">Projection Operators</a><ul><li class="toctree-l5"><a class="reference internal" href="operator/projection/positional.html">$ (projection)</a></li><li class="toctree-l5"><a class="reference internal" href="operator/projection/elemMatch.html">$elemMatch (projection)</a></li><li class="toctree-l5"><a class="reference internal" href="operator/projection/meta.html">$meta</a></li><li class="toctree-l5"><a class="reference internal" href="operator/projection/slice.html">$slice (projection)</a></li></ul></li></ul></li><li class="toctree-l3"><a class="reference internal" href="operator/update.html">Update Operators</a><ul><li class="toctree-l4"><a class="reference internal" href="operator/update-field.html">Field Update Operators</a><ul><li class="toctree-l5"><a class="reference internal" href="operator/update/currentDate.html">$currentDate</a></li><li class="toctree-l5"><a class="reference internal" href="operator/update/inc.html">$inc</a></li><li class="toctree-l5"><a class="reference internal" href="operator/update/min.html">$min</a></li><li class="toctree-l5"><a class="reference internal" href="operator/update/max.html">$max</a></li><li class="toctree-l5"><a class="reference internal" href="operator/update/mul.html">$mul</a></li><li class="toctree-l5"><a class="reference internal" href="operator/update/rename.html">$rename</a></li><li class="toctree-l5"><a class="reference internal" href="operator/update/set.html">$set</a></li><li class="toctree-l5"><a class="reference internal" href="operator/update/setOnInsert.html">$setOnInsert</a></li><li class="toctree-l5"><a class="reference internal" href="operator/update/unset.html">$unset</a></li></ul></li><li class="toctree-l4"><a class="reference internal" href="operator/update-array.html">Array Update Operators</a><ul><li class="toctree-l5"><a class="reference internal" href="operator/update/positional.html">$ (update)</a></li><li class="toctree-l5"><a class="reference internal" href="operator/update/positional-all.html">$[]</a></li><li class="toctree-l5"><a class="reference internal" href="operator/update/positional-filtered.html">$[&lt;identifier&gt;]</a></li><li class="toctree-l5"><a class="reference internal" href="operator/update/addToSet.html">$addToSet</a></li><li class="toctree-l5"><a class="reference internal" href="operator/update/pop.html">$pop</a></li><li class="toctree-l5"><a class="reference internal" href="operator/update/pull.html">$pull</a></li><li class="toctree-l5"><a class="reference internal" href="operator/update/push.html">$push</a></li><li class="toctree-l5"><a class="reference internal" href="operator/update/pullAll.html">$pullAll</a></li><li class="toctree-l5"><a class="reference internal" href="operator/update/each.html">$each</a></li><li class="toctree-l5"><a class="reference internal" href="operator/update/position.html">$position</a></li><li class="toctree-l5"><a class="reference internal" href="operator/update/slice.html">$slice</a></li><li class="toctree-l5"><a class="reference internal" href="operator/update/sort.html">$sort</a></li></ul></li><li class="toctree-l4"><a class="reference internal" href="operator/update-bitwise.html">Bitwise Update Operator</a><ul><li class="toctree-l5"><a class="reference internal" href="operator/update/bit.html">$bit</a></li></ul></li></ul></li><li class="toctree-l3"><a class="reference internal" href="operator/aggregation-pipeline.html">Aggregation Pipeline Stages</a><ul><li class="toctree-l4"><a class="reference internal" href="operator/aggregation/addFields.html">$addFields (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="operator/aggregation/bucket.html">$bucket (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="operator/aggregation/bucketAuto.html">$bucketAuto (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="operator/aggregation/collStats.html">$collStats (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="operator/aggregation/count.html">$count (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="operator/aggregation/currentOp.html">$currentOp (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="operator/aggregation/facet.html">$facet (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="operator/aggregation/geoNear.html">$geoNear (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="operator/aggregation/graphLookup.html">$graphLookup (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="operator/aggregation/group.html">$group (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="operator/aggregation/indexStats.html">$indexStats (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="operator/aggregation/limit.html">$limit (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="operator/aggregation/listLocalSessions.html">$listLocalSessions</a></li><li class="toctree-l4"><a class="reference internal" href="operator/aggregation/listSessions.html">$listSessions</a></li><li class="toctree-l4"><a class="reference internal" href="operator/aggregation/lookup.html">$lookup (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="operator/aggregation/match.html">$match (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="operator/aggregation/merge.html">$merge (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="operator/aggregation/out.html">$out (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="operator/aggregation/planCacheStats.html">$planCacheStats</a></li><li class="toctree-l4"><a class="reference internal" href="operator/aggregation/project.html">$project (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="operator/aggregation/redact.html">$redact (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="operator/aggregation/replaceRoot.html">$replaceRoot (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="operator/aggregation/replaceWith.html">$replaceWith (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="operator/aggregation/sample.html">$sample (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="operator/aggregation/set.html">$set (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="operator/aggregation/skip.html">$skip (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="operator/aggregation/sort.html">$sort (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="operator/aggregation/sortByCount.html">$sortByCount (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="operator/aggregation/unset.html">$unset (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="operator/aggregation/unwind.html">$unwind (aggregation)</a></li></ul></li><li class="toctree-l3"><a class="reference internal" href="operator/aggregation.html">Aggregation Pipeline Operators</a><ul><li class="toctree-l4"><a class="reference internal" href="operator/aggregation/abs.html">$abs (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="operator/aggregation/acos.html">$acos (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="operator/aggregation/acosh.html">$acosh (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="operator/aggregation/add.html">$add (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="operator/aggregation/addToSet.html">$addToSet (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="operator/aggregation/allElementsTrue.html">$allElementsTrue (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="operator/aggregation/and.html">$and (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="operator/aggregation/anyElementTrue.html">$anyElementTrue (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="operator/aggregation/arrayElemAt.html">$arrayElemAt (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="operator/aggregation/arrayToObject.html">$arrayToObject (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="operator/aggregation/asin.html">$asin (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="operator/aggregation/asinh.html">$asinh (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="operator/aggregation/atan.html">$atan (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="operator/aggregation/atan2.html">$atan2 (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="operator/aggregation/atanh.html">$atanh (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="operator/aggregation/avg.html">$avg (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="operator/aggregation/ceil.html">$ceil (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="operator/aggregation/cmp.html">$cmp (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="operator/aggregation/concat.html">$concat (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="operator/aggregation/concatArrays.html">$concatArrays (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="operator/aggregation/cond.html">$cond (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="operator/aggregation/convert.html">$convert (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="operator/aggregation/cos.html">$cos (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="operator/aggregation/dateFromParts.html">$dateFromParts (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="operator/aggregation/dateToParts.html">$dateToParts (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="operator/aggregation/dateFromString.html">$dateFromString (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="operator/aggregation/dateToString.html">$dateToString (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="operator/aggregation/dayOfMonth.html">$dayOfMonth (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="operator/aggregation/dayOfWeek.html">$dayOfWeek (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="operator/aggregation/dayOfYear.html">$dayOfYear (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="operator/aggregation/degreesToRadians.html">$degreesToRadians (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="operator/aggregation/divide.html">$divide (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="operator/aggregation/eq.html">$eq (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="operator/aggregation/exp.html">$exp (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="operator/aggregation/filter.html">$filter (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="operator/aggregation/first.html">$first (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="operator/aggregation/floor.html">$floor (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="operator/aggregation/gt.html">$gt (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="operator/aggregation/gte.html">$gte (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="operator/aggregation/hour.html">$hour (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="operator/aggregation/ifNull.html">$ifNull (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="operator/aggregation/in.html">$in (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="operator/aggregation/indexOfArray.html">$indexOfArray (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="operator/aggregation/indexOfBytes.html">$indexOfBytes (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="operator/aggregation/indexOfCP.html">$indexOfCP (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="operator/aggregation/isArray.html">$isArray (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="operator/aggregation/isoDayOfWeek.html">$isoDayOfWeek (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="operator/aggregation/isoWeek.html">$isoWeek (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="operator/aggregation/isoWeekYear.html">$isoWeekYear (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="operator/aggregation/last.html">$last (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="operator/aggregation/let.html">$let (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="operator/aggregation/literal.html">$literal (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="operator/aggregation/ln.html">$ln (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="operator/aggregation/log.html">$log (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="operator/aggregation/log10.html">$log10 (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="operator/aggregation/lt.html">$lt (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="operator/aggregation/lte.html">$lte (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="operator/aggregation/ltrim.html">$ltrim (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="operator/aggregation/map.html">$map (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="operator/aggregation/max.html">$max (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="operator/aggregation/mergeObjects.html">$mergeObjects (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="operator/aggregation/meta.html">$meta (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="operator/aggregation/min.html">$min (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="operator/aggregation/millisecond.html">$millisecond (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="operator/aggregation/minute.html">$minute (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="operator/aggregation/mod.html">$mod (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="operator/aggregation/month.html">$month (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="operator/aggregation/multiply.html">$multiply (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="operator/aggregation/ne.html">$ne (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="operator/aggregation/not.html">$not (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="operator/aggregation/objectToArray.html">$objectToArray (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="operator/aggregation/or.html">$or (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="operator/aggregation/pow.html">$pow (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="operator/aggregation/push.html">$push (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="operator/aggregation/radiansToDegrees.html">$radiansToDegrees (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="operator/aggregation/range.html">$range (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="operator/aggregation/reduce.html">$reduce (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="operator/aggregation/regexFind.html">$regexFind (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="operator/aggregation/regexFindAll.html">$regexFindAll (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="operator/aggregation/regexMatch.html">$regexMatch (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="operator/aggregation/reverseArray.html">$reverseArray (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="operator/aggregation/round.html">$round (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="operator/aggregation/rtrim.html">$rtrim (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="operator/aggregation/second.html">$second (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="operator/aggregation/setDifference.html">$setDifference (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="operator/aggregation/setEquals.html">$setEquals (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="operator/aggregation/setIntersection.html">$setIntersection (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="operator/aggregation/setIsSubset.html">$setIsSubset (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="operator/aggregation/setUnion.html">$setUnion (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="operator/aggregation/size.html">$size (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="operator/aggregation/sin.html">$sin (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="operator/aggregation/slice.html">$slice (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="operator/aggregation/split.html">$split (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="operator/aggregation/sqrt.html">$sqrt (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="operator/aggregation/stdDevPop.html">$stdDevPop (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="operator/aggregation/stdDevSamp.html">$stdDevSamp (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="operator/aggregation/strcasecmp.html">$strcasecmp (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="operator/aggregation/strLenBytes.html">$strLenBytes (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="operator/aggregation/strLenCP.html">$strLenCP (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="operator/aggregation/substr.html">$substr (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="operator/aggregation/substrBytes.html">$substrBytes (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="operator/aggregation/substrCP.html">$substrCP (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="operator/aggregation/subtract.html">$subtract (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="operator/aggregation/sum.html">$sum (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="operator/aggregation/switch.html">$switch (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="operator/aggregation/tan.html">$tan (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="operator/aggregation/toBool.html">$toBool (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="operator/aggregation/toDate.html">$toDate (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="operator/aggregation/toDecimal.html">$toDecimal (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="operator/aggregation/toDouble.html">$toDouble(aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="operator/aggregation/toInt.html">$toInt (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="operator/aggregation/toLong.html">$toLong (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="operator/aggregation/toObjectId.html">$toObjectId (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="operator/aggregation/toString.html">$toString (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="operator/aggregation/toLower.html">$toLower (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="operator/aggregation/toUpper.html">$toUpper (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="operator/aggregation/trim.html">$trim (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="operator/aggregation/trunc.html">$trunc (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="operator/aggregation/type.html">$type (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="operator/aggregation/week.html">$week (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="operator/aggregation/year.html">$year (aggregation)</a></li><li class="toctree-l4"><a class="reference internal" href="operator/aggregation/zip.html">$zip (aggregation)</a></li></ul></li><li class="toctree-l3"><a class="reference internal" href="operator/query-modifier.html">Query Modifiers</a><ul><li class="toctree-l4"><a class="reference internal" href="operator/meta/comment.html">$comment</a></li><li class="toctree-l4"><a class="reference internal" href="operator/meta/explain.html">$explain</a></li><li class="toctree-l4"><a class="reference internal" href="operator/meta/hint.html">$hint</a></li><li class="toctree-l4"><a class="reference internal" href="operator/meta/max.html">$max</a></li><li class="toctree-l4"><a class="reference internal" href="operator/meta/maxTimeMS.html">$maxTimeMS</a></li><li class="toctree-l4"><a class="reference internal" href="operator/meta/min.html">$min</a></li><li class="toctree-l4"><a class="reference internal" href="operator/meta/orderby.html">$orderby</a></li><li class="toctree-l4"><a class="reference internal" href="operator/meta/query.html">$query</a></li><li class="toctree-l4"><a class="reference internal" href="operator/meta/returnKey.html">$returnKey</a></li><li class="toctree-l4"><a class="reference internal" href="operator/meta/showDiskLoc.html">$showDiskLoc</a></li><li class="toctree-l4"><a class="reference internal" href="operator/meta/natural.html">$natural</a></li></ul></li></ul></li><li class="toctree-l2"><a class="reference internal" href="command.html">Database Commands</a><ul><li class="toctree-l3"><a class="reference internal" href="command/nav-aggregation.html">Aggregation Commands</a><ul><li class="toctree-l4"><a class="reference internal" href="command/aggregate.html">aggregate</a></li><li class="toctree-l4"><a class="reference internal" href="command/count.html">count</a></li><li class="toctree-l4"><a class="reference internal" href="command/distinct.html">distinct</a></li><li class="toctree-l4"><a class="reference internal" href="command/mapReduce.html">mapReduce</a></li></ul></li><li class="toctree-l3"><a class="reference internal" href="command/nav-geospatial.html">Geospatial Commands</a><ul><li class="toctree-l4"><a class="reference internal" href="command/geoSearch.html">geoSearch</a></li></ul></li><li class="toctree-l3"><a class="reference internal" href="command/nav-crud.html">Query and Write Operation Commands</a><ul><li class="toctree-l4"><a class="reference internal" href="command/delete.html">delete</a></li><li class="toctree-l4"><a class="reference internal" href="command/find.html">find</a></li><li class="toctree-l4"><a class="reference internal" href="command/findAndModify.html">findAndModify</a></li><li class="toctree-l4"><a class="reference internal" href="command/getLastError.html">getLastError</a></li><li class="toctree-l4"><a class="reference internal" href="command/getMore.html">getMore</a></li><li class="toctree-l4"><a class="reference internal" href="command/insert.html">insert</a></li><li class="toctree-l4"><a class="reference internal" href="command/resetError.html">resetError</a></li><li class="toctree-l4"><a class="reference internal" href="command/update.html">update</a></li></ul></li><li class="toctree-l3"><a class="reference internal" href="command/nav-plan-cache.html">Query Plan Cache Commands</a><ul><li class="toctree-l4"><a class="reference internal" href="command/planCacheClear.html">planCacheClear</a></li><li class="toctree-l4"><a class="reference internal" href="command/planCacheClearFilters.html">planCacheClearFilters</a></li><li class="toctree-l4"><a class="reference internal" href="command/planCacheListFilters.html">planCacheListFilters</a></li><li class="toctree-l4"><a class="reference internal" href="command/planCacheListPlans.html">planCacheListPlans</a></li><li class="toctree-l4"><a class="reference internal" href="command/planCacheListQueryShapes.html">planCacheListQueryShapes</a></li><li class="toctree-l4"><a class="reference internal" href="command/planCacheSetFilter.html">planCacheSetFilter</a></li></ul></li><li class="toctree-l3"><a class="reference internal" href="command/nav-authentication.html">Authentication Commands</a><ul><li class="toctree-l4"><a class="reference internal" href="command/authenticate.html">authenticate</a></li><li class="toctree-l4"><a class="reference internal" href="command/getnonce.html">getnonce</a></li><li class="toctree-l4"><a class="reference internal" href="command/logout.html">logout</a></li></ul></li><li class="toctree-l3"><a class="reference internal" href="command/nav-user-management.html">User Management Commands</a><ul><li class="toctree-l4"><a class="reference internal" href="command/createUser.html">createUser</a></li><li class="toctree-l4"><a class="reference internal" href="command/dropAllUsersFromDatabase.html">dropAllUsersFromDatabase</a></li><li class="toctree-l4"><a class="reference internal" href="command/dropUser.html">dropUser</a></li><li class="toctree-l4"><a class="reference internal" href="command/grantRolesToUser.html">grantRolesToUser</a></li><li class="toctree-l4"><a class="reference internal" href="command/revokeRolesFromUser.html">revokeRolesFromUser</a></li><li class="toctree-l4"><a class="reference internal" href="command/updateUser.html">updateUser</a></li><li class="toctree-l4"><a class="reference internal" href="command/usersInfo.html">usersInfo</a></li></ul></li><li class="toctree-l3"><a class="reference internal" href="command/nav-role-management.html">Role Management Commands</a><ul><li class="toctree-l4"><a class="reference internal" href="command/createRole.html">createRole</a></li><li class="toctree-l4"><a class="reference internal" href="command/dropRole.html">dropRole</a></li><li class="toctree-l4"><a class="reference internal" href="command/dropAllRolesFromDatabase.html">dropAllRolesFromDatabase</a></li><li class="toctree-l4"><a class="reference internal" href="command/grantPrivilegesToRole.html">grantPrivilegesToRole</a></li><li class="toctree-l4"><a class="reference internal" href="command/grantRolesToRole.html">grantRolesToRole</a></li><li class="toctree-l4"><a class="reference internal" href="command/invalidateUserCache.html">invalidateUserCache</a></li><li class="toctree-l4"><a class="reference internal" href="command/revokePrivilegesFromRole.html">revokePrivilegesFromRole</a></li><li class="toctree-l4"><a class="reference internal" href="command/revokeRolesFromRole.html">revokeRolesFromRole</a></li><li class="toctree-l4"><a class="reference internal" href="command/rolesInfo.html">rolesInfo</a></li><li class="toctree-l4"><a class="reference internal" href="command/updateRole.html">updateRole</a></li></ul></li><li class="toctree-l3"><a class="reference internal" href="command/nav-replication.html">Replication Commands</a><ul><li class="toctree-l4"><a class="reference internal" href="command/applyOps.html">applyOps</a></li><li class="toctree-l4"><a class="reference internal" href="command/isMaster.html">isMaster</a></li><li class="toctree-l4"><a class="reference internal" href="command/replSetAbortPrimaryCatchUp.html">replSetAbortPrimaryCatchUp</a></li><li class="toctree-l4"><a class="reference internal" href="command/replSetFreeze.html">replSetFreeze</a></li><li class="toctree-l4"><a class="reference internal" href="command/replSetGetConfig.html">replSetGetConfig</a></li><li class="toctree-l4"><a class="reference internal" href="command/replSetGetStatus.html">replSetGetStatus</a></li><li class="toctree-l4"><a class="reference internal" href="command/replSetInitiate.html">replSetInitiate</a></li><li class="toctree-l4"><a class="reference internal" href="command/replSetMaintenance.html">replSetMaintenance</a></li><li class="toctree-l4"><a class="reference internal" href="command/replSetReconfig.html">replSetReconfig</a></li><li class="toctree-l4"><a class="reference internal" href="command/replSetResizeOplog.html">replSetResizeOplog</a></li><li class="toctree-l4"><a class="reference internal" href="command/replSetStepDown.html">replSetStepDown</a></li><li class="toctree-l4"><a class="reference internal" href="command/replSetSyncFrom.html">replSetSyncFrom</a></li></ul></li><li class="toctree-l3"><a class="reference internal" href="command/nav-sharding.html">Sharding Commands</a><ul><li class="toctree-l4"><a class="reference internal" href="command/addShard.html">addShard</a></li><li class="toctree-l4"><a class="reference internal" href="command/addShardToZone.html">addShardToZone</a></li><li class="toctree-l4"><a class="reference internal" href="command/balancerStart.html">balancerStart</a></li><li class="toctree-l4"><a class="reference internal" href="command/balancerStatus.html">balancerStatus</a></li><li class="toctree-l4"><a class="reference internal" href="command/balancerStop.html">balancerStop</a></li><li class="toctree-l4"><a class="reference internal" href="command/checkShardingIndex.html">checkShardingIndex</a></li><li class="toctree-l4"><a class="reference internal" href="command/clearJumboFlag.html">clearJumboFlag</a></li><li class="toctree-l4"><a class="reference internal" href="command/cleanupOrphaned.html">cleanupOrphaned</a></li><li class="toctree-l4"><a class="reference internal" href="command/enableSharding.html">enableSharding</a></li><li class="toctree-l4"><a class="reference internal" href="command/flushRouterConfig.html">flushRouterConfig</a></li><li class="toctree-l4"><a class="reference internal" href="command/getShardMap.html">getShardMap</a></li><li class="toctree-l4"><a class="reference internal" href="command/getShardVersion.html">getShardVersion</a></li><li class="toctree-l4"><a class="reference internal" href="command/isdbgrid.html">isdbgrid</a></li><li class="toctree-l4"><a class="reference internal" href="command/listShards.html">listShards</a></li><li class="toctree-l4"><a class="reference internal" href="command/medianKey.html">medianKey</a></li><li class="toctree-l4"><a class="reference internal" href="command/moveChunk.html">moveChunk</a></li><li class="toctree-l4"><a class="reference internal" href="command/movePrimary.html">movePrimary</a></li><li class="toctree-l4"><a class="reference internal" href="command/mergeChunks.html">mergeChunks</a></li><li class="toctree-l4"><a class="reference internal" href="command/removeShard.html">removeShard</a></li><li class="toctree-l4"><a class="reference internal" href="command/removeShardFromZone.html">removeShardFromZone</a></li><li class="toctree-l4"><a class="reference internal" href="command/setShardVersion.html">setShardVersion</a></li><li class="toctree-l4"><a class="reference internal" href="command/shardCollection.html">shardCollection</a></li><li class="toctree-l4"><a class="reference internal" href="command/shardingState.html">shardingState</a></li><li class="toctree-l4"><a class="reference internal" href="command/split.html">split</a></li><li class="toctree-l4"><a class="reference internal" href="command/splitChunk.html">splitChunk</a></li><li class="toctree-l4"><a class="reference internal" href="command/splitVector.html">splitVector</a></li><li class="toctree-l4"><a class="reference internal" href="command/unsetSharding.html">unsetSharding</a></li><li class="toctree-l4"><a class="reference internal" href="command/updateZoneKeyRange.html">updateZoneKeyRange</a></li></ul></li><li class="toctree-l3"><a class="reference internal" href="command/nav-sessions.html">Sessions Commands</a><ul><li class="toctree-l4"><a class="reference internal" href="command/abortTransaction.html">abortTransaction</a></li><li class="toctree-l4"><a class="reference internal" href="command/commitTransaction.html">commitTransaction</a></li><li class="toctree-l4"><a class="reference internal" href="command/endSessions.html">endSessions</a></li><li class="toctree-l4"><a class="reference internal" href="command/killAllSessions.html">killAllSessions</a></li><li class="toctree-l4"><a class="reference internal" href="command/killAllSessionsByPattern.html">killAllSessionsByPattern</a></li><li class="toctree-l4"><a class="reference internal" href="command/killSessions.html">killSessions</a></li><li class="toctree-l4"><a class="reference internal" href="command/refreshSessions.html">refreshSessions</a></li><li class="toctree-l4"><a class="reference internal" href="command/startSession.html">startSession</a></li></ul></li><li class="toctree-l3"><a class="reference internal" href="command/nav-administration.html">Administration Commands</a><ul><li class="toctree-l4"><a class="reference internal" href="command/clean.html">clean</a></li><li class="toctree-l4"><a class="reference internal" href="command/cloneCollection.html">cloneCollection</a></li><li class="toctree-l4"><a class="reference internal" href="command/cloneCollectionAsCapped.html">cloneCollectionAsCapped</a></li><li class="toctree-l4"><a class="reference internal" href="command/collMod.html">collMod</a></li><li class="toctree-l4"><a class="reference internal" href="command/compact.html">compact</a></li><li class="toctree-l4"><a class="reference internal" href="command/connPoolSync.html">connPoolSync</a></li><li class="toctree-l4"><a class="reference internal" href="command/convertToCapped.html">convertToCapped</a></li><li class="toctree-l4"><a class="reference internal" href="command/create.html">create</a></li><li class="toctree-l4"><a class="reference internal" href="command/createIndexes.html">createIndexes</a></li><li class="toctree-l4"><a class="reference internal" href="command/currentOp.html">currentOp</a></li><li class="toctree-l4"><a class="reference internal" href="command/drop.html">drop</a></li><li class="toctree-l4"><a class="reference internal" href="command/dropDatabase.html">dropDatabase</a></li><li class="toctree-l4"><a class="reference internal" href="command/dropConnections.html">dropConnections</a></li><li class="toctree-l4"><a class="reference internal" href="command/dropIndexes.html">dropIndexes</a></li><li class="toctree-l4"><a class="reference internal" href="command/filemd5.html">filemd5</a></li><li class="toctree-l4"><a class="reference internal" href="command/fsync.html">fsync</a></li><li class="toctree-l4"><a class="reference internal" href="command/fsyncUnlock.html">fsyncUnlock</a></li><li class="toctree-l4"><a class="reference internal" href="command/getParameter.html">getParameter</a></li><li class="toctree-l4"><a class="reference internal" href="command/killCursors.html">killCursors</a></li><li class="toctree-l4"><a class="reference internal" href="command/killOp.html">killOp</a></li><li class="toctree-l4"><a class="reference internal" href="command/listCollections.html">listCollections</a></li><li class="toctree-l4"><a class="reference internal" href="command/listDatabases.html">listDatabases</a></li><li class="toctree-l4"><a class="reference internal" href="command/listIndexes.html">listIndexes</a></li><li class="toctree-l4"><a class="reference internal" href="command/logRotate.html">logRotate</a></li><li class="toctree-l4"><a class="reference internal" href="command/reIndex.html">reIndex</a></li><li class="toctree-l4"><a class="reference internal" href="command/renameCollection.html">renameCollection</a></li><li class="toctree-l4"><a class="reference internal" href="command/setFeatureCompatibilityVersion.html">setFeatureCompatibilityVersion</a></li><li class="toctree-l4"><a class="reference internal" href="command/setParameter.html">setParameter</a></li><li class="toctree-l4"><a class="reference internal" href="command/shutdown.html">shutdown</a></li></ul></li><li class="toctree-l3"><a class="reference internal" href="command/nav-diagnostic.html">Diagnostic Commands</a><ul><li class="toctree-l4"><a class="reference internal" href="command/availableQueryOptions.html">availableQueryOptions</a></li><li class="toctree-l4"><a class="reference internal" href="command/buildInfo.html">buildInfo</a></li><li class="toctree-l4"><a class="reference internal" href="command/collStats.html">collStats</a></li><li class="toctree-l4"><a class="reference internal" href="command/connPoolStats.html">connPoolStats</a></li><li class="toctree-l4"><a class="reference internal" href="command/connectionStatus.html">connectionStatus</a></li><li class="toctree-l4"><a class="reference internal" href="command/cursorInfo.html">cursorInfo</a></li><li class="toctree-l4"><a class="reference internal" href="command/dataSize.html">dataSize</a></li><li class="toctree-l4"><a class="reference internal" href="command/dbHash.html">dbHash</a></li><li class="toctree-l4"><a class="reference internal" href="command/dbStats.html">dbStats</a></li><li class="toctree-l4"><a class="reference internal" href="command/diagLogging.html">diagLogging</a></li><li class="toctree-l4"><a class="reference internal" href="command/driverOIDTest.html">driverOIDTest</a></li><li class="toctree-l4"><a class="reference internal" href="command/explain.html">explain</a></li><li class="toctree-l4"><a class="reference internal" href="command/features.html">features</a></li><li class="toctree-l4"><a class="reference internal" href="command/getCmdLineOpts.html">getCmdLineOpts</a></li><li class="toctree-l4"><a class="reference internal" href="command/getLog.html">getLog</a></li><li class="toctree-l4"><a class="reference internal" href="command/hostInfo.html">hostInfo</a></li><li class="toctree-l4"><a class="reference internal" href="command/isSelf.html">isSelf</a></li><li class="toctree-l4"><a class="reference internal" href="command/listCommands.html">listCommands</a></li><li class="toctree-l4"><a class="reference internal" href="command/netstat.html">netstat</a></li><li class="toctree-l4"><a class="reference internal" href="command/ping.html">ping</a></li><li class="toctree-l4"><a class="reference internal" href="command/profile.html">profile</a></li><li class="toctree-l4"><a class="reference internal" href="command/serverStatus.html">serverStatus</a></li><li class="toctree-l4"><a class="reference internal" href="command/shardConnPoolStats.html">shardConnPoolStats</a></li><li class="toctree-l4"><a class="reference internal" href="command/top.html">top</a></li><li class="toctree-l4"><a class="reference internal" href="command/validate.html">validate</a></li><li class="toctree-l4"><a class="reference internal" href="command/whatsmyuri.html">whatsmyuri</a></li></ul></li><li class="toctree-l3"><a class="reference internal" href="command/nav-free-monitoring.html">Free Monitoring Commands</a><ul><li class="toctree-l4"><a class="reference internal" href="command/getFreeMonitoringStatus.html">getFreeMonitoringStatus</a></li><li class="toctree-l4"><a class="reference internal" href="command/setFreeMonitoring.html">setFreeMonitoring</a></li></ul></li><li class="toctree-l3"><a class="reference internal" href="command/nav-auditing.html">System Events Auditing Commands</a><ul><li class="toctree-l4"><a class="reference internal" href="command/logApplicationMessage.html">logApplicationMessage</a></li></ul></li></ul></li><li class="toctree-l2"><a class="reference internal" href="method.html"><code class="docutils literal"><span class="pre">mongo</span></code> Shell Methods</a><ul><li class="toctree-l3"><a class="reference internal" href="method/js-collection.html">Collection Methods</a><ul><li class="toctree-l4"><a class="reference internal" href="method/db.collection.aggregate.html">db.collection.aggregate()</a></li><li class="toctree-l4"><a class="reference internal" href="method/db.collection.bulkWrite.html">db.collection.bulkWrite()</a></li><li class="toctree-l4"><a class="reference internal" href="method/db.collection.copyTo.html">db.collection.copyTo()</a></li><li class="toctree-l4"><a class="reference internal" href="method/db.collection.count.html">db.collection.count()</a></li><li class="toctree-l4"><a class="reference internal" href="method/db.collection.countDocuments.html">db.collection.countDocuments()</a></li><li class="toctree-l4"><a class="reference internal" href="method/db.collection.estimatedDocumentCount.html">db.collection.estimatedDocumentCount()</a></li><li class="toctree-l4"><a class="reference internal" href="method/db.collection.createIndex.html">db.collection.createIndex()</a></li><li class="toctree-l4"><a class="reference internal" href="method/db.collection.createIndexes.html">db.collection.createIndexes()</a></li><li class="toctree-l4"><a class="reference internal" href="method/db.collection.dataSize.html">db.collection.dataSize()</a></li><li class="toctree-l4"><a class="reference internal" href="method/db.collection.deleteOne.html">db.collection.deleteOne()</a></li><li class="toctree-l4"><a class="reference internal" href="method/db.collection.deleteMany.html">db.collection.deleteMany()</a></li><li class="toctree-l4"><a class="reference internal" href="method/db.collection.distinct.html">db.collection.distinct()</a></li><li class="toctree-l4"><a class="reference internal" href="method/db.collection.drop.html">db.collection.drop()</a></li><li class="toctree-l4"><a class="reference internal" href="method/db.collection.dropIndex.html">db.collection.dropIndex()</a></li><li class="toctree-l4"><a class="reference internal" href="method/db.collection.dropIndexes.html">db.collection.dropIndexes()</a></li><li class="toctree-l4"><a class="reference internal" href="method/db.collection.ensureIndex.html">db.collection.ensureIndex()</a></li><li class="toctree-l4"><a class="reference internal" href="method/db.collection.explain.html">db.collection.explain()</a></li><li class="toctree-l4"><a class="reference internal" href="method/db.collection.find.html">db.collection.find()</a></li><li class="toctree-l4"><a class="reference internal" href="method/db.collection.findAndModify.html">db.collection.findAndModify()</a></li><li class="toctree-l4"><a class="reference internal" href="method/db.collection.findOne.html">db.collection.findOne()</a></li><li class="toctree-l4"><a class="reference internal" href="method/db.collection.findOneAndDelete.html">db.collection.findOneAndDelete()</a></li><li class="toctree-l4"><a class="reference internal" href="method/db.collection.findOneAndReplace.html">db.collection.findOneAndReplace()</a></li><li class="toctree-l4"><a class="reference internal" href="method/db.collection.findOneAndUpdate.html">db.collection.findOneAndUpdate()</a></li><li class="toctree-l4"><a class="reference internal" href="method/db.collection.getIndexes.html">db.collection.getIndexes()</a></li><li class="toctree-l4"><a class="reference internal" href="method/db.collection.getShardDistribution.html">db.collection.getShardDistribution()</a></li><li class="toctree-l4"><a class="reference internal" href="method/db.collection.getShardVersion.html">db.collection.getShardVersion()</a></li><li class="toctree-l4"><a class="reference internal" href="method/db.collection.insert.html">db.collection.insert()</a></li><li class="toctree-l4"><a class="reference internal" href="method/db.collection.insertOne.html">db.collection.insertOne()</a></li><li class="toctree-l4"><a class="reference internal" href="method/db.collection.insertMany.html">db.collection.insertMany()</a></li><li class="toctree-l4"><a class="reference internal" href="method/db.collection.isCapped.html">db.collection.isCapped()</a></li><li class="toctree-l4"><a class="reference internal" href="method/db.collection.latencyStats.html">db.collection.latencyStats()</a></li><li class="toctree-l4"><a class="reference internal" href="method/db.collection.mapReduce.html">db.collection.mapReduce()</a></li><li class="toctree-l4"><a class="reference internal" href="method/db.collection.reIndex.html">db.collection.reIndex()</a></li><li class="toctree-l4"><a class="reference internal" href="method/db.collection.remove.html">db.collection.remove()</a></li><li class="toctree-l4"><a class="reference internal" href="method/db.collection.renameCollection.html">db.collection.renameCollection()</a></li><li class="toctree-l4"><a class="reference internal" href="method/db.collection.replaceOne.html">db.collection.replaceOne()</a></li><li class="toctree-l4"><a class="reference internal" href="method/db.collection.save.html">db.collection.save()</a></li><li class="toctree-l4"><a class="reference internal" href="method/db.collection.stats.html">db.collection.stats()</a></li><li class="toctree-l4"><a class="reference internal" href="method/db.collection.storageSize.html">db.collection.storageSize()</a></li><li class="toctree-l4"><a class="reference internal" href="method/db.collection.totalIndexSize.html">db.collection.totalIndexSize()</a></li><li class="toctree-l4"><a class="reference internal" href="method/db.collection.totalSize.html">db.collection.totalSize()</a></li><li class="toctree-l4"><a class="reference internal" href="method/db.collection.update.html">db.collection.update()</a></li><li class="toctree-l4"><a class="reference internal" href="method/db.collection.updateOne.html">db.collection.updateOne()</a></li><li class="toctree-l4"><a class="reference internal" href="method/db.collection.updateMany.html">db.collection.updateMany()</a></li><li class="toctree-l4"><a class="reference internal" href="method/db.collection.watch.html">db.collection.watch()</a></li><li class="toctree-l4"><a class="reference internal" href="method/db.collection.validate.html">db.collection.validate()</a></li></ul></li><li class="toctree-l3"><a class="reference internal" href="method/js-cursor.html">Cursor Methods</a><ul><li class="toctree-l4"><a class="reference internal" href="method/cursor.addOption.html">cursor.addOption()</a></li><li class="toctree-l4"><a class="reference internal" href="method/cursor.allowPartialResults.html">cursor.allowPartialResults()</a></li><li class="toctree-l4"><a class="reference internal" href="method/cursor.batchSize.html">cursor.batchSize()</a></li><li class="toctree-l4"><a class="reference internal" href="method/cursor.close.html">cursor.close()</a></li><li class="toctree-l4"><a class="reference internal" href="method/cursor.isClosed.html">cursor.isClosed()</a></li><li class="toctree-l4"><a class="reference internal" href="method/cursor.collation.html">cursor.collation()</a></li><li class="toctree-l4"><a class="reference internal" href="method/cursor.comment.html">cursor.comment()</a></li><li class="toctree-l4"><a class="reference internal" href="method/cursor.count.html">cursor.count()</a></li><li class="toctree-l4"><a class="reference internal" href="method/cursor.explain.html">cursor.explain()</a></li><li class="toctree-l4"><a class="reference internal" href="method/cursor.forEach.html">cursor.forEach()</a></li><li class="toctree-l4"><a class="reference internal" href="method/cursor.hasNext.html">cursor.hasNext()</a></li><li class="toctree-l4"><a class="reference internal" href="method/cursor.hint.html">cursor.hint()</a></li><li class="toctree-l4"><a class="reference internal" href="method/cursor.isExhausted.html">cursor.isExhausted()</a></li><li class="toctree-l4"><a class="reference internal" href="method/cursor.itcount.html">cursor.itcount()</a></li><li class="toctree-l4"><a class="reference internal" href="method/cursor.limit.html">cursor.limit()</a></li><li class="toctree-l4"><a class="reference internal" href="method/cursor.map.html">cursor.map()</a></li><li class="toctree-l4"><a class="reference internal" href="method/cursor.max.html">cursor.max()</a></li><li class="toctree-l4"><a class="reference internal" href="method/cursor.maxTimeMS.html">cursor.maxTimeMS()</a></li><li class="toctree-l4"><a class="reference internal" href="method/cursor.min.html">cursor.min()</a></li><li class="toctree-l4"><a class="reference internal" href="method/cursor.next.html">cursor.next()</a></li><li class="toctree-l4"><a class="reference internal" href="method/cursor.noCursorTimeout.html">cursor.noCursorTimeout()</a></li><li class="toctree-l4"><a class="reference internal" href="method/cursor.objsLeftInBatch.html">cursor.objsLeftInBatch()</a></li><li class="toctree-l4"><a class="reference internal" href="method/cursor.pretty.html">cursor.pretty()</a></li><li class="toctree-l4"><a class="reference internal" href="method/cursor.readConcern.html">cursor.readConcern()</a></li><li class="toctree-l4"><a class="reference internal" href="method/cursor.readPref.html">cursor.readPref()</a></li><li class="toctree-l4"><a class="reference internal" href="method/cursor.returnKey.html">cursor.returnKey()</a></li><li class="toctree-l4"><a class="reference internal" href="method/cursor.showRecordId.html">cursor.showRecordId()</a></li><li class="toctree-l4"><a class="reference internal" href="method/cursor.size.html">cursor.size()</a></li><li class="toctree-l4"><a class="reference internal" href="method/cursor.skip.html">cursor.skip()</a></li><li class="toctree-l4"><a class="reference internal" href="method/cursor.sort.html">cursor.sort()</a></li><li class="toctree-l4"><a class="reference internal" href="method/cursor.tailable.html">cursor.tailable()</a></li><li class="toctree-l4"><a class="reference internal" href="method/cursor.toArray.html">cursor.toArray()</a></li></ul></li><li class="toctree-l3"><a class="reference internal" href="method/js-database.html">Database Methods</a><ul><li class="toctree-l4"><a class="reference internal" href="method/db.adminCommand.html">db.adminCommand()</a></li><li class="toctree-l4"><a class="reference internal" href="method/db.aggregate.html">db.aggregate()</a></li><li class="toctree-l4"><a class="reference internal" href="method/db.cloneCollection.html">db.cloneCollection()</a></li><li class="toctree-l4"><a class="reference internal" href="method/db.cloneDatabase.html">db.cloneDatabase()</a></li><li class="toctree-l4"><a class="reference internal" href="method/db.commandHelp.html">db.commandHelp()</a></li><li class="toctree-l4"><a class="reference internal" href="method/db.copyDatabase.html">db.copyDatabase()</a></li><li class="toctree-l4"><a class="reference internal" href="method/db.createCollection.html">db.createCollection()</a></li><li class="toctree-l4"><a class="reference internal" href="method/db.createView.html">db.createView()</a></li><li class="toctree-l4"><a class="reference internal" href="method/db.currentOp.html">db.currentOp()</a></li><li class="toctree-l4"><a class="reference internal" href="method/db.dropDatabase.html">db.dropDatabase()</a></li><li class="toctree-l4"><a class="reference internal" href="method/db.eval.html">db.eval()</a></li><li class="toctree-l4"><a class="reference internal" href="method/db.fsyncLock.html">db.fsyncLock()</a></li><li class="toctree-l4"><a class="reference internal" href="method/db.fsyncUnlock.html">db.fsyncUnlock()</a></li><li class="toctree-l4"><a class="reference internal" href="method/db.getCollection.html">db.getCollection()</a></li><li class="toctree-l4"><a class="reference internal" href="method/db.getCollectionInfos.html">db.getCollectionInfos()</a></li><li class="toctree-l4"><a class="reference internal" href="method/db.getCollectionNames.html">db.getCollectionNames()</a></li><li class="toctree-l4"><a class="reference internal" href="method/db.getLastError.html">db.getLastError()</a></li><li class="toctree-l4"><a class="reference internal" href="method/db.getLastErrorObj.html">db.getLastErrorObj()</a></li><li class="toctree-l4"><a class="reference internal" href="method/db.getLogComponents.html">db.getLogComponents()</a></li><li class="toctree-l4"><a class="reference internal" href="method/db.getMongo.html">db.getMongo()</a></li><li class="toctree-l4"><a class="reference internal" href="method/db.getName.html">db.getName()</a></li><li class="toctree-l4"><a class="reference internal" href="method/db.getProfilingLevel.html">db.getProfilingLevel()</a></li><li class="toctree-l4"><a class="reference internal" href="method/db.getProfilingStatus.html">db.getProfilingStatus()</a></li><li class="toctree-l4"><a class="reference internal" href="method/db.getReplicationInfo.html">db.getReplicationInfo()</a></li><li class="toctree-l4"><a class="reference internal" href="method/db.getSiblingDB.html">db.getSiblingDB()</a></li><li class="toctree-l4"><a class="reference internal" href="method/db.help.html">db.help()</a></li><li class="toctree-l4"><a class="reference internal" href="method/db.hostInfo.html">db.hostInfo()</a></li><li class="toctree-l4"><a class="reference internal" href="method/db.isMaster.html">db.isMaster()</a></li><li class="toctree-l4"><a class="reference internal" href="method/db.killOp.html">db.killOp()</a></li><li class="toctree-l4"><a class="reference internal" href="method/db.listCommands.html">db.listCommands()</a></li><li class="toctree-l4"><a class="reference internal" href="method/db.logout.html">db.logout()</a></li><li class="toctree-l4"><a class="reference internal" href="method/db.printCollectionStats.html">db.printCollectionStats()</a></li><li class="toctree-l4"><a class="reference internal" href="method/db.printReplicationInfo.html">db.printReplicationInfo()</a></li><li class="toctree-l4"><a class="reference internal" href="method/db.printShardingStatus.html">db.printShardingStatus()</a></li><li class="toctree-l4"><a class="reference internal" href="method/db.printSlaveReplicationInfo.html">db.printSlaveReplicationInfo()</a></li><li class="toctree-l4"><a class="reference internal" href="method/db.resetError.html">db.resetError()</a></li><li class="toctree-l4"><a class="reference internal" href="method/db.runCommand.html">db.runCommand()</a></li><li class="toctree-l4"><a class="reference internal" href="method/db.serverBuildInfo.html">db.serverBuildInfo()</a></li><li class="toctree-l4"><a class="reference internal" href="method/db.serverCmdLineOpts.html">db.serverCmdLineOpts()</a></li><li class="toctree-l4"><a class="reference internal" href="method/db.serverStatus.html">db.serverStatus()</a></li><li class="toctree-l4"><a class="reference internal" href="method/db.setLogLevel.html">db.setLogLevel()</a></li><li class="toctree-l4"><a class="reference internal" href="method/db.setProfilingLevel.html">db.setProfilingLevel()</a></li><li class="toctree-l4"><a class="reference internal" href="method/db.shutdownServer.html">db.shutdownServer()</a></li><li class="toctree-l4"><a class="reference internal" href="method/db.stats.html">db.stats()</a></li><li class="toctree-l4"><a class="reference internal" href="method/db.version.html">db.version()</a></li><li class="toctree-l4"><a class="reference internal" href="method/db.watch.html">db.watch()</a></li></ul></li><li class="toctree-l3"><a class="reference internal" href="method/js-plan-cache.html">Query Plan Cache Methods</a><ul><li class="toctree-l4"><a class="reference internal" href="method/db.collection.getPlanCache.html">db.collection.getPlanCache()</a></li><li class="toctree-l4"><a class="reference internal" href="method/PlanCache.clear.html">PlanCache.clear()</a></li><li class="toctree-l4"><a class="reference internal" href="method/PlanCache.clearPlansByQuery.html">PlanCache.clearPlansByQuery()</a></li><li class="toctree-l4"><a class="reference internal" href="method/PlanCache.getPlansByQuery.html">PlanCache.getPlansByQuery()</a></li><li class="toctree-l4"><a class="reference internal" href="method/PlanCache.help.html">PlanCache.help()</a></li><li class="toctree-l4"><a class="reference internal" href="method/PlanCache.listQueryShapes.html">PlanCache.listQueryShapes()</a></li></ul></li><li class="toctree-l3"><a class="reference internal" href="method/js-bulk.html">Bulk Operation Methods</a><ul><li class="toctree-l4"><a class="reference internal" href="method/db.collection.initializeOrderedBulkOp.html">db.collection.initializeOrderedBulkOp()</a></li><li class="toctree-l4"><a class="reference internal" href="method/db.collection.initializeUnorderedBulkOp.html">db.collection.initializeUnorderedBulkOp()</a></li><li class="toctree-l4"><a class="reference internal" href="method/Bulk.html">Bulk()</a></li><li class="toctree-l4"><a class="reference internal" href="method/Bulk.execute.html">Bulk.execute()</a></li><li class="toctree-l4"><a class="reference internal" href="method/Bulk.find.html">Bulk.find()</a></li><li class="toctree-l4"><a class="reference internal" href="method/Bulk.find.arrayFilters.html">Bulk.find.arrayFilters()</a></li><li class="toctree-l4"><a class="reference internal" href="method/Bulk.find.collation.html">Bulk.find.collation()</a></li><li class="toctree-l4"><a class="reference internal" href="method/Bulk.find.hint.html">Bulk.find.hint()</a></li><li class="toctree-l4"><a class="reference internal" href="method/Bulk.find.remove.html">Bulk.find.remove()</a></li><li class="toctree-l4"><a class="reference internal" href="method/Bulk.find.removeOne.html">Bulk.find.removeOne()</a></li><li class="toctree-l4"><a class="reference internal" href="method/Bulk.find.replaceOne.html">Bulk.find.replaceOne()</a></li><li class="toctree-l4"><a class="reference internal" href="method/Bulk.find.updateOne.html">Bulk.find.updateOne()</a></li><li class="toctree-l4"><a class="reference internal" href="method/Bulk.find.update.html">Bulk.find.update()</a></li><li class="toctree-l4"><a class="reference internal" href="method/Bulk.find.upsert.html">Bulk.find.upsert()</a></li><li class="toctree-l4"><a class="reference internal" href="method/Bulk.getOperations.html">Bulk.getOperations()</a></li><li class="toctree-l4"><a class="reference internal" href="method/Bulk.insert.html">Bulk.insert()</a></li><li class="toctree-l4"><a class="reference internal" href="method/Bulk.tojson.html">Bulk.tojson()</a></li><li class="toctree-l4"><a class="reference internal" href="method/Bulk.toString.html">Bulk.toString()</a></li></ul></li><li class="toctree-l3"><a class="reference internal" href="method/js-user-management.html">User Management Methods</a><ul><li class="toctree-l4"><a class="reference internal" href="method/db.auth.html">db.auth()</a></li><li class="toctree-l4"><a class="reference internal" href="method/db.changeUserPassword.html">db.changeUserPassword()</a></li><li class="toctree-l4"><a class="reference internal" href="method/db.createUser.html">db.createUser()</a></li><li class="toctree-l4"><a class="reference internal" href="method/db.dropUser.html">db.dropUser()</a></li><li class="toctree-l4"><a class="reference internal" href="method/db.dropAllUsers.html">db.dropAllUsers()</a></li><li class="toctree-l4"><a class="reference internal" href="method/db.getUser.html">db.getUser()</a></li><li class="toctree-l4"><a class="reference internal" href="method/db.getUsers.html">db.getUsers()</a></li><li class="toctree-l4"><a class="reference internal" href="method/db.grantRolesToUser.html">db.grantRolesToUser()</a></li><li class="toctree-l4"><a class="reference internal" href="method/db.removeUser.html">db.removeUser()</a></li><li class="toctree-l4"><a class="reference internal" href="method/db.revokeRolesFromUser.html">db.revokeRolesFromUser()</a></li><li class="toctree-l4"><a class="reference internal" href="method/db.updateUser.html">db.updateUser()</a></li><li class="toctree-l4"><a class="reference internal" href="method/passwordPrompt.html">passwordPrompt()</a></li></ul></li><li class="toctree-l3"><a class="reference internal" href="method/js-role-management.html">Role Management Methods</a><ul><li class="toctree-l4"><a class="reference internal" href="method/db.createRole.html">db.createRole()</a></li><li class="toctree-l4"><a class="reference internal" href="method/db.dropRole.html">db.dropRole()</a></li><li class="toctree-l4"><a class="reference internal" href="method/db.dropAllRoles.html">db.dropAllRoles()</a></li><li class="toctree-l4"><a class="reference internal" href="method/db.getRole.html">db.getRole()</a></li><li class="toctree-l4"><a class="reference internal" href="method/db.getRoles.html">db.getRoles()</a></li><li class="toctree-l4"><a class="reference internal" href="method/db.grantPrivilegesToRole.html">db.grantPrivilegesToRole()</a></li><li class="toctree-l4"><a class="reference internal" href="method/db.revokePrivilegesFromRole.html">db.revokePrivilegesFromRole()</a></li><li class="toctree-l4"><a class="reference internal" href="method/db.grantRolesToRole.html">db.grantRolesToRole()</a></li><li class="toctree-l4"><a class="reference internal" href="method/db.revokeRolesFromRole.html">db.revokeRolesFromRole()</a></li><li class="toctree-l4"><a class="reference internal" href="method/db.updateRole.html">db.updateRole()</a></li></ul></li><li class="toctree-l3"><a class="reference internal" href="method/js-replication.html">Replication Methods</a><ul><li class="toctree-l4"><a class="reference internal" href="method/rs.add.html">rs.add()</a></li><li class="toctree-l4"><a class="reference internal" href="method/rs.addArb.html">rs.addArb()</a></li><li class="toctree-l4"><a class="reference internal" href="method/rs.conf.html">rs.conf()</a></li><li class="toctree-l4"><a class="reference internal" href="method/rs.freeze.html">rs.freeze()</a></li><li class="toctree-l4"><a class="reference internal" href="method/rs.help.html">rs.help()</a></li><li class="toctree-l4"><a class="reference internal" href="method/rs.initiate.html">rs.initiate()</a></li><li class="toctree-l4"><a class="reference internal" href="method/rs.printReplicationInfo.html">rs.printReplicationInfo()</a></li><li class="toctree-l4"><a class="reference internal" href="method/rs.printSlaveReplicationInfo.html">rs.printSlaveReplicationInfo()</a></li><li class="toctree-l4"><a class="reference internal" href="method/rs.reconfig.html">rs.reconfig()</a></li><li class="toctree-l4"><a class="reference internal" href="method/rs.remove.html">rs.remove()</a></li><li class="toctree-l4"><a class="reference internal" href="method/rs.slaveOk.html">rs.slaveOk()</a></li><li class="toctree-l4"><a class="reference internal" href="method/rs.status.html">rs.status()</a></li><li class="toctree-l4"><a class="reference internal" href="method/rs.stepDown.html">rs.stepDown()</a></li><li class="toctree-l4"><a class="reference internal" href="method/rs.syncFrom.html">rs.syncFrom()</a></li></ul></li><li class="toctree-l3"><a class="reference internal" href="method/js-sharding.html">Sharding Methods</a><ul><li class="toctree-l4"><a class="reference internal" href="method/sh.addShard.html">sh.addShard()</a></li><li class="toctree-l4"><a class="reference internal" href="method/sh.addShardTag.html">sh.addShardTag()</a></li><li class="toctree-l4"><a class="reference internal" href="method/sh.addShardToZone.html">sh.addShardToZone()</a></li><li class="toctree-l4"><a class="reference internal" href="method/sh.addTagRange.html">sh.addTagRange()</a></li><li class="toctree-l4"><a class="reference internal" href="method/sh.disableBalancing.html">sh.disableBalancing()</a></li><li class="toctree-l4"><a class="reference internal" href="method/sh.enableBalancing.html">sh.enableBalancing()</a></li><li class="toctree-l4"><a class="reference internal" href="method/sh.disableAutoSplit.html">sh.disableAutoSplit</a></li><li class="toctree-l4"><a class="reference internal" href="method/sh.enableAutoSplit.html">sh.enableAutoSplit</a></li><li class="toctree-l4"><a class="reference internal" href="method/sh.enableSharding.html">sh.enableSharding()</a></li><li class="toctree-l4"><a class="reference internal" href="method/sh.getBalancerHost.html">sh.getBalancerHost()</a></li><li class="toctree-l4"><a class="reference internal" href="method/sh.getBalancerState.html">sh.getBalancerState()</a></li><li class="toctree-l4"><a class="reference internal" href="method/sh.removeTagRange.html">sh.removeTagRange()</a></li><li class="toctree-l4"><a class="reference internal" href="method/sh.removeRangeFromZone.html">sh.removeRangeFromZone()</a></li><li class="toctree-l4"><a class="reference internal" href="method/sh.help.html">sh.help()</a></li><li class="toctree-l4"><a class="reference internal" href="method/sh.isBalancerRunning.html">sh.isBalancerRunning()</a></li><li class="toctree-l4"><a class="reference internal" href="method/sh.moveChunk.html">sh.moveChunk()</a></li><li class="toctree-l4"><a class="reference internal" href="method/sh.removeShardTag.html">sh.removeShardTag()</a></li><li class="toctree-l4"><a class="reference internal" href="method/sh.removeShardFromZone.html">sh.removeShardFromZone()</a></li><li class="toctree-l4"><a class="reference internal" href="method/sh.setBalancerState.html">sh.setBalancerState()</a></li><li class="toctree-l4"><a class="reference internal" href="method/sh.shardCollection.html">sh.shardCollection()</a></li><li class="toctree-l4"><a class="reference internal" href="method/sh.splitAt.html">sh.splitAt()</a></li><li class="toctree-l4"><a class="reference internal" href="method/sh.splitFind.html">sh.splitFind()</a></li><li class="toctree-l4"><a class="reference internal" href="method/sh.startBalancer.html">sh.startBalancer()</a></li><li class="toctree-l4"><a class="reference internal" href="method/sh.status.html">sh.status()</a></li><li class="toctree-l4"><a class="reference internal" href="method/sh.stopBalancer.html">sh.stopBalancer()</a></li><li class="toctree-l4"><a class="reference internal" href="method/sh.waitForBalancer.html">sh.waitForBalancer()</a></li><li class="toctree-l4"><a class="reference internal" href="method/sh.waitForBalancerOff.html">sh.waitForBalancerOff()</a></li><li class="toctree-l4"><a class="reference internal" href="method/sh.waitForPingChange.html">sh.waitForPingChange()</a></li><li class="toctree-l4"><a class="reference internal" href="method/sh.updateZoneKeyRange.html">sh.updateZoneKeyRange()</a></li><li class="toctree-l4"><a class="reference internal" href="method/convertShardKeyToHashed.html">convertShardKeyToHashed</a></li></ul></li><li class="toctree-l3"><a class="reference internal" href="method/js-free-monitoring.html">Free Monitoring Methods</a><ul><li class="toctree-l4"><a class="reference internal" href="method/db.disableFreeMonitoring.html">db.disableFreeMonitoring()</a></li><li class="toctree-l4"><a class="reference internal" href="method/db.enableFreeMonitoring.html">db.enableFreeMonitoring()</a></li><li class="toctree-l4"><a class="reference internal" href="method/db.getFreeMonitoringStatus.html">db.getFreeMonitoringStatus</a></li></ul></li><li class="toctree-l3"><a class="reference internal" href="method/js-constructor.html">Object Constructors and Methods</a><ul><li class="toctree-l4"><a class="reference internal" href="method/BulkWriteResult.html">BulkWriteResult()</a></li><li class="toctree-l4"><a class="reference internal" href="method/Date.html">Date()</a></li><li class="toctree-l4"><a class="reference internal" href="method/ObjectId.html">ObjectId</a></li><li class="toctree-l4"><a class="reference internal" href="method/ObjectId.getTimestamp.html">ObjectId.getTimestamp()</a></li><li class="toctree-l4"><a class="reference internal" href="method/ObjectId.toString.html">ObjectId.toString()</a></li><li class="toctree-l4"><a class="reference internal" href="method/ObjectId.valueOf.html">ObjectId.valueOf()</a></li><li class="toctree-l4"><a class="reference internal" href="method/UUID.html">UUID()</a></li><li class="toctree-l4"><a class="reference internal" href="method/WriteResult.html">WriteResult()</a></li><li class="toctree-l4"><a class="reference internal" href="method/WriteResult.hasWriteError.html">WriteResult.hasWriteError()</a></li><li class="toctree-l4"><a class="reference internal" href="method/WriteResult.hasWriteConcernError.html">WriteResult.hasWriteConcernError()</a></li></ul></li><li class="toctree-l3"><a class="reference internal" href="method/js-connection.html">Connection Methods</a><ul><li class="toctree-l4"><a class="reference internal" href="method/connect.html">connect()</a></li><li class="toctree-l4"><a class="reference internal" href="method/Mongo.html">Mongo()</a></li><li class="toctree-l4"><a class="reference internal" href="method/Mongo.getDB.html">Mongo.getDB()</a></li><li class="toctree-l4"><a class="reference internal" href="method/Mongo.getReadPrefMode.html">Mongo.getReadPrefMode()</a></li><li class="toctree-l4"><a class="reference internal" href="method/Mongo.getReadPrefTagSet.html">Mongo.getReadPrefTagSet()</a></li><li class="toctree-l4"><a class="reference internal" href="method/Mongo.isCausalConsistency.html">Mongo.isCausalConsistency()</a></li><li class="toctree-l4"><a class="reference internal" href="method/Mongo.setCausalConsistency.html">Mongo.setCausalConsistency()</a></li><li class="toctree-l4"><a class="reference internal" href="method/Mongo.setReadPref.html">Mongo.setReadPref()</a></li><li class="toctree-l4"><a class="reference internal" href="method/Mongo.setSlaveOk.html">Mongo.setSlaveOk()</a></li><li class="toctree-l4"><a class="reference internal" href="method/Mongo.startSession.html">Mongo.startSession()</a></li><li class="toctree-l4"><a class="reference internal" href="method/Mongo.watch.html">Mongo.watch()</a></li><li class="toctree-l4"><a class="reference internal" href="method/Session.html">Session</a><ul><li class="toctree-l5"><a class="reference internal" href="method/Session.abortTransaction.html">Session.abortTransaction()</a></li><li class="toctree-l5"><a class="reference internal" href="method/Session.commitTransaction.html">Session.commitTransaction()</a></li><li class="toctree-l5"><a class="reference internal" href="method/Session.startTransaction.html">Session.startTransaction()</a></li></ul></li><li class="toctree-l4"><a class="reference internal" href="method/SessionOptions.html">SessionOptions</a></li></ul></li><li class="toctree-l3"><a class="reference internal" href="method/js-native.html">Native Methods</a><ul><li class="toctree-l4"><a class="reference internal" href="method/cat.html">cat()</a></li><li class="toctree-l4"><a class="reference internal" href="method/cd.html">cd()</a></li><li class="toctree-l4"><a class="reference internal" href="method/copyDbpath.html">copyDbpath()</a></li><li class="toctree-l4"><a class="reference internal" href="method/getHostName.html">getHostName()</a></li><li class="toctree-l4"><a class="reference internal" href="method/getMemInfo.html">getMemInfo()</a></li><li class="toctree-l4"><a class="reference internal" href="method/hostname.html">hostname()</a></li><li class="toctree-l4"><a class="reference internal" href="method/isInteractive.html">isInteractive()</a></li><li class="toctree-l4"><a class="reference internal" href="method/listFiles.html">listFiles()</a></li><li class="toctree-l4"><a class="reference internal" href="method/load.html">load()</a></li><li class="toctree-l4"><a class="reference internal" href="method/ls.html">ls()</a></li><li class="toctree-l4"><a class="reference internal" href="method/md5sumFile.html">md5sumFile()</a></li><li class="toctree-l4"><a class="reference internal" href="method/mkdir.html">mkdir()</a></li><li class="toctree-l4"><a class="reference internal" href="method/pwd.html">pwd()</a></li><li class="toctree-l4"><a class="reference internal" href="method/quit.html">quit()</a></li><li class="toctree-l4"><a class="reference internal" href="method/removeFile.html">removeFile()</a></li><li class="toctree-l4"><a class="reference internal" href="method/resetDbpath.html">resetDbpath()</a></li><li class="toctree-l4"><a class="reference internal" href="method/sleep.html">sleep()</a></li><li class="toctree-l4"><a class="reference internal" href="method/setVerboseShell.html">setVerboseShell()</a></li><li class="toctree-l4"><a class="reference internal" href="method/version.html">version()</a></li><li class="toctree-l4"><a class="reference internal" href="method/isWindows.html">_isWindows()</a></li><li class="toctree-l4"><a class="reference internal" href="method/rand.html">_rand()</a></li></ul></li><li class="toctree-l3"><a class="reference internal" href="method/js-client-side-field-level-encryption.html">Client-Side Field Level Encryption Methods</a><ul><li class="toctree-l4"><a class="reference internal" href="method/getKeyVault.html">getKeyVault()</a></li><li class="toctree-l4"><a class="reference internal" href="method/KeyVault.createKey.html">KeyVault.createKey()</a></li><li class="toctree-l4"><a class="reference internal" href="method/KeyVault.deleteKey.html">KeyVault.deleteKey()</a></li><li class="toctree-l4"><a class="reference internal" href="method/KeyVault.getKey.html">KeyVault.getKey()</a></li><li class="toctree-l4"><a class="reference internal" href="method/KeyVault.getKeys.html">KeyVault.getKeys()</a></li><li class="toctree-l4"><a class="reference internal" href="method/KeyVault.addKeyAlternateName.html">KeyVault.addKeyAlternateName()</a></li><li class="toctree-l4"><a class="reference internal" href="method/KeyVault.removeKeyAlternateName.html">KeyVault.removeKeyAlternateName()</a></li><li class="toctree-l4"><a class="reference internal" href="method/KeyVault.getKeyByAltName.html">KeyVault.getKeyByAltName()</a></li><li class="toctree-l4"><a class="reference internal" href="method/getClientEncryption.html">getClientEncryption()</a></li><li class="toctree-l4"><a class="reference internal" href="method/ClientEncryption.encrypt.html">ClientEncryption.encrypt()</a></li><li class="toctree-l4"><a class="reference internal" href="method/ClientEncryption.decrypt.html">ClientEncryption.decrypt()</a></li></ul></li></ul></li><li class="toctree-l2"><a class="reference internal" href="program.html">MongoDB Package Components</a><ul><li class="toctree-l3"><a class="reference internal" href="program/mongod.html"><code class="docutils literal"><span class="pre">mongod</span></code></a></li><li class="toctree-l3"><a class="reference internal" href="program/mongos.html"><code class="docutils literal"><span class="pre">mongos</span></code></a></li><li class="toctree-l3"><a class="reference internal" href="program/mongo.html"><code class="docutils literal"><span class="pre">mongo</span></code></a></li><li class="toctree-l3"><a class="reference internal" href="program/mongod.exe.html"><code class="docutils literal"><span class="pre">mongod.exe</span></code></a></li><li class="toctree-l3"><a class="reference internal" href="program/mongos.exe.html"><code class="docutils literal"><span class="pre">mongos.exe</span></code></a></li><li class="toctree-l3"><a class="reference internal" href="program/mongodump.html"><code class="docutils literal"><span class="pre">mongodump</span></code></a></li><li class="toctree-l3"><a class="reference internal" href="program/mongorestore.html"><code class="docutils literal"><span class="pre">mongorestore</span></code></a></li><li class="toctree-l3"><a class="reference internal" href="program/bsondump.html"><code class="docutils literal"><span class="pre">bsondump</span></code></a></li><li class="toctree-l3"><a class="reference internal" href="program/mongoimport.html"><code class="docutils literal"><span class="pre">mongoimport</span></code></a></li><li class="toctree-l3"><a class="reference internal" href="program/mongoexport.html"><code class="docutils literal"><span class="pre">mongoexport</span></code></a></li><li class="toctree-l3"><a class="reference internal" href="program/mongostat.html"><code class="docutils literal"><span class="pre">mongostat</span></code></a></li><li class="toctree-l3"><a class="reference internal" href="program/mongotop.html"><code class="docutils literal"><span class="pre">mongotop</span></code></a></li><li class="toctree-l3"><a class="reference internal" href="program/mongoreplay.html"><code class="docutils literal"><span class="pre">mongoreplay</span></code></a></li><li class="toctree-l3"><a class="reference internal" href="program/mongoldap.html"><code class="docutils literal"><span class="pre">mongoldap</span></code></a></li><li class="toctree-l3"><a class="reference internal" href="program/mongofiles.html"><code class="docutils literal"><span class="pre">mongofiles</span></code></a></li><li class="toctree-l3"><a class="reference internal" href="program/install_compass.html"><code class="docutils literal"><span class="pre">install_compass</span></code></a></li></ul></li><li class="toctree-l2"><a class="reference internal" href="configuration-options.html">Configuration File Options</a><ul><li class="toctree-l3"><a class="reference internal" href="expansion-directives.html">Externally Sourced Configuration File Values</a></li><li class="toctree-l3"><a class="reference internal" href="../tutorial/convert-command-line-options-to-yaml.html">Convert Command-Line Options to YAML</a></li><li class="toctree-l3"><a class="reference internal" href="configuration-file-settings-command-line-options-mapping.html">Configuration File Settings and Command-Line Options Mapping</a></li></ul></li><li class="toctree-l2"><a class="reference internal" href="parameters.html">MongoDB Server Parameters</a></li><li class="toctree-l2"><a class="reference internal" href="limits.html">MongoDB Limits and Thresholds</a></li><li class="toctree-l2"><a class="reference internal" href="explain-results.html">Explain Results</a></li><li class="toctree-l2"><a class="reference internal" href="system-collections.html">System Collections</a></li><li class="toctree-l2 current"><a class="reference internal current" href="">Connection String URI Format</a></li><li class="toctree-l2"><a class="reference internal" href="collation.html">Collation</a><ul><li class="toctree-l3"><a class="reference internal" href="collation-locales-defaults.html">Collation Locales and Default Parameters</a></li></ul></li><li class="toctree-l2"><a class="reference internal" href="mongodb-wire-protocol.html">MongoDB Wire Protocol</a></li><li class="toctree-l2"><a class="reference internal" href="log-messages.html">Log Messages</a></li><li class="toctree-l2"><a class="reference internal" href="exit-codes.html">Exit Codes and Statuses</a></li><li class="toctree-l2"><a class="reference internal" href="glossary.html">Glossary</a></li><li class="toctree-l2"><a class="reference internal" href="default-mongodb-port.html">Default MongoDB Port</a></li><li class="toctree-l2"><a class="reference internal" href="server-sessions.html">Server Sessions</a></li></ul></li><li class="toctree-l1"><a class="reference internal" href="../release-notes.html">Release Notes</a><ul><li class="toctree-l2"><a class="reference internal" href="../release-notes/4.2.html">Release Notes for MongoDB 4.2</a><ul><li class="toctree-l3"><a class="reference internal" href="../release-notes/4.2-compatibility.html">Compatibility Changes in MongoDB 4.2</a></li><li class="toctree-l3"><a class="reference internal" href="../release-notes/4.2-upgrade-standalone.html">Upgrade a Standalone to 4.2</a></li><li class="toctree-l3"><a class="reference internal" href="../release-notes/4.2-upgrade-replica-set.html">Upgrade a Replica Set to 4.2</a></li><li class="toctree-l3"><a class="reference internal" href="../release-notes/4.2-upgrade-sharded-cluster.html">Upgrade a Sharded Cluster to 4.2</a></li><li class="toctree-l3"><a class="reference internal" href="../release-notes/4.2-downgrade.html">Downgrade 4.2 to 4.0</a><ul><li class="toctree-l4"><a class="reference internal" href="../release-notes/4.2-downgrade-standalone.html">Downgrade 4.2 Standalone to 4.0</a></li><li class="toctree-l4"><a class="reference internal" href="../release-notes/4.2-downgrade-replica-set.html">Downgrade 4.2 Replica Set to 4.0</a></li><li class="toctree-l4"><a class="reference internal" href="../release-notes/4.2-downgrade-sharded-cluster.html">Downgrade 4.2 Sharded Cluster to 4.0</a></li></ul></li><li class="toctree-l3"><a class="reference internal" href="../release-notes/4.2-changelog.html">4.2 Changelog</a></li></ul></li><li class="toctree-l2"><a class="reference internal" href="../release-notes/4.0.html">Release Notes for MongoDB 4.0</a><ul><li class="toctree-l3"><a class="reference internal" href="../release-notes/4.0-compatibility.html">Compatibility Changes in MongoDB 4.0</a></li><li class="toctree-l3"><a class="reference internal" href="../release-notes/4.0-upgrade-standalone.html">Upgrade a Standalone to 4.0</a></li><li class="toctree-l3"><a class="reference internal" href="../release-notes/4.0-upgrade-replica-set.html">Upgrade a Replica Set to 4.0</a></li><li class="toctree-l3"><a class="reference internal" href="../release-notes/4.0-upgrade-sharded-cluster.html">Upgrade a Sharded Cluster to 4.0</a></li><li class="toctree-l3"><a class="reference internal" href="../release-notes/4.0-downgrade-standalone.html">Downgrade 4.0 Standalone to 3.6</a></li><li class="toctree-l3"><a class="reference internal" href="../release-notes/4.0-downgrade-replica-set.html">Downgrade 4.0 Replica Set to 3.6</a></li><li class="toctree-l3"><a class="reference internal" href="../release-notes/4.0-downgrade-sharded-cluster.html">Downgrade 4.0 Sharded Cluster to 3.6</a></li><li class="toctree-l3"><a class="reference internal" href="../release-notes/4.0-changelog.html">4.0 Changelog</a></li></ul></li><li class="toctree-l2"><a class="reference internal" href="../release-notes/3.6.html">Release Notes for MongoDB 3.6</a><ul><li class="toctree-l3"><a class="reference internal" href="../release-notes/3.6-changelog.html">3.6 Changelog</a></li><li class="toctree-l3"><a class="reference internal" href="../release-notes/3.6-compatibility.html">Compatibility Changes in MongoDB 3.6</a></li><li class="toctree-l3"><a class="reference internal" href="../release-notes/3.6-upgrade-standalone.html">Upgrade a Standalone to 3.6</a></li><li class="toctree-l3"><a class="reference internal" href="../release-notes/3.6-upgrade-replica-set.html">Upgrade a Replica Set to 3.6</a></li><li class="toctree-l3"><a class="reference internal" href="../release-notes/3.6-upgrade-sharded-cluster.html">Upgrade a Sharded Cluster to 3.6</a></li><li class="toctree-l3"><a class="reference internal" href="../release-notes/3.6-downgrade-standalone.html">Downgrade 3.6 Standalone to 3.4</a></li><li class="toctree-l3"><a class="reference internal" href="../release-notes/3.6-downgrade-replica-set.html">Downgrade 3.6 Replica Set to 3.4</a></li><li class="toctree-l3"><a class="reference internal" href="../release-notes/3.6-downgrade-sharded-cluster.html">Downgrade 3.6 Sharded Cluster to 3.4</a></li></ul></li><li class="toctree-l2"><a class="reference internal" href="../release-notes/3.4.html">Release Notes for MongoDB 3.4</a><ul><li class="toctree-l3"><a class="reference internal" href="../release-notes/3.4-changelog.html">3.4 Changelog</a></li><li class="toctree-l3"><a class="reference internal" href="../release-notes/3.4-compatibility.html">Compatibility Changes in MongoDB 3.4</a></li><li class="toctree-l3"><a class="reference internal" href="../release-notes/3.4-upgrade-standalone.html">Upgrade a Standalone to 3.4</a></li><li class="toctree-l3"><a class="reference internal" href="../release-notes/3.4-upgrade-replica-set.html">Upgrade a Replica Set to 3.4</a></li><li class="toctree-l3"><a class="reference internal" href="../release-notes/3.4-upgrade-sharded-cluster.html">Upgrade a Sharded Cluster to 3.4</a></li><li class="toctree-l3"><a class="reference internal" href="../release-notes/3.4-downgrade.html">Downgrade MongoDB 3.4 to 3.2</a><ul><li class="toctree-l4"><a class="reference internal" href="../release-notes/3.4-downgrade-standalone.html">Downgrade 3.4 Standalone to 3.2</a></li><li class="toctree-l4"><a class="reference internal" href="../release-notes/3.4-downgrade-replica-set.html">Downgrade 3.4 Replica Set to 3.2</a></li><li class="toctree-l4"><a class="reference internal" href="../release-notes/3.4-downgrade-sharded-cluster.html">Downgrade 3.4 Sharded Cluster to 3.2</a></li></ul></li></ul></li><li class="toctree-l2"><a class="reference internal" href="../release-notes/3.2.html">Release Notes for MongoDB 3.2</a><ul><li class="toctree-l3"><a class="reference internal" href="../release-notes/3.2-changelog.html">3.2 Changelog</a></li><li class="toctree-l3"><a class="reference internal" href="../release-notes/3.2-compatibility.html">Compatibility Changes in MongoDB 3.2</a><ul><li class="toctree-l4"><a class="reference internal" href="../release-notes/3.2-javascript.html">JavaScript Changes in MongoDB 3.2</a></li></ul></li><li class="toctree-l3"><a class="reference internal" href="../release-notes/3.2-upgrade.html">Upgrade MongoDB to 3.2</a></li><li class="toctree-l3"><a class="reference internal" href="../release-notes/3.2-downgrade.html">Downgrade MongoDB from 3.2</a></li></ul></li><li class="toctree-l2"><a class="reference internal" href="../release-notes/3.0.html">Release Notes for MongoDB 3.0</a><ul><li class="toctree-l3"><a class="reference internal" href="../release-notes/3.0-changelog.html">3.0 Changelog</a></li><li class="toctree-l3"><a class="reference internal" href="../release-notes/3.0-compatibility.html">Compatibility Changes in MongoDB 3.0</a></li><li class="toctree-l3"><a class="reference internal" href="../release-notes/3.0-upgrade.html">Upgrade MongoDB to 3.0</a></li><li class="toctree-l3"><a class="reference internal" href="../release-notes/3.0-scram.html">Upgrade to SCRAM</a></li><li class="toctree-l3"><a class="reference internal" href="../release-notes/3.0-downgrade.html">Downgrade MongoDB from 3.0</a></li></ul></li><li class="toctree-l2"><a class="reference internal" href="../release-notes/2.6.html">Release Notes for MongoDB 2.6</a><ul><li class="toctree-l3"><a class="reference internal" href="../release-notes/2.6-changelog.html">2.6 Changelog</a></li><li class="toctree-l3"><a class="reference internal" href="../release-notes/2.6-compatibility.html">Compatibility Changes in MongoDB 2.6</a></li><li class="toctree-l3"><a class="reference internal" href="../release-notes/2.6-upgrade.html">Upgrade MongoDB to 2.6</a></li><li class="toctree-l3"><a class="reference internal" href="../release-notes/2.6-upgrade-authorization.html">Upgrade User Authorization Data to 2.6 Format</a></li><li class="toctree-l3"><a class="reference internal" href="../release-notes/2.6-downgrade.html">Downgrade MongoDB from 2.6</a></li></ul></li><li class="toctree-l2"><a class="reference internal" href="../release-notes/2.4.html">Release Notes for MongoDB 2.4</a><ul><li class="toctree-l3"><a class="reference internal" href="../release-notes/2.4-changelog.html">2.4 Changelog</a></li><li class="toctree-l3"><a class="reference internal" href="../release-notes/2.4-javascript.html">JavaScript Changes in MongoDB 2.4</a></li><li class="toctree-l3"><a class="reference internal" href="../release-notes/2.4-upgrade.html">Upgrade MongoDB to 2.4</a></li><li class="toctree-l3"><a class="reference internal" href="../release-notes/2.4-index-types.html">Compatibility and Index Type Changes in MongoDB 2.4</a></li></ul></li><li class="toctree-l2"><a class="reference internal" href="../release-notes/2.2.html">Release Notes for MongoDB 2.2</a></li><li class="toctree-l2"><a class="reference internal" href="../release-notes/2.0.html">Release Notes for MongoDB 2.0</a></li><li class="toctree-l2"><a class="reference internal" href="../release-notes/1.8.html">Release Notes for MongoDB 1.8</a></li><li class="toctree-l2"><a class="reference internal" href="../release-notes/1.6.html">Release Notes for MongoDB 1.6</a></li><li class="toctree-l2"><a class="reference internal" href="../release-notes/1.4.html">Release Notes for MongoDB 1.4</a></li><li class="toctree-l2"><a class="reference internal" href="../release-notes/1.2.html">Release Notes for MongoDB 1.2.x</a></li><li class="toctree-l2"><a class="reference internal" href="versioning.html">MongoDB Versioning</a></li></ul></li><li class="toctree-l1"><a class="reference internal" href="../support.html">Technical Support</a></li></ul>


    </div>
  </div>
           
         </aside>

   </div>

    <div id="main-column" class="main-column">

    <span id="showNav" class="showNav">Navigation</span>

      
        <div class="document">
            <div class="documentwrapper"><div class="bodywrapper">
              <div class="body" data-pagename="reference/connection-string">
                   <a class="edit-link" href="https://github.com/mongodb/docs/blob/v4.2/source/reference/connection-string.txt" target="_blank" title="Edit reference/connection-string.txt on GitHub">
    
      <span class="icon-edit"></span>
    
  </a>
                

                
  <div class="bc">
    
      <ul>
          <li><a href="../reference.html">Reference</a><span class="bcpoint"> > </span></li>
            <li>Connection String URI Format</li> 
      </ul>
    
    
  </div>
                
                  <div class="section" id="connection-string-uri-format">
<span id="mongodb-uri"></span><span id="index-0"></span><h1>Connection String URI Format<a class="headerlink" href="#connection-string-uri-format" title="Permalink to this headline">¶</a></h1>
<div class="contents singlecol local topic" id="on-this-page">
<p class="topic-title first">On this page</p>
<ul class="simple">
<li><a class="reference internal" href="#connection-string-formats" id="id4">Connection String Formats</a></li>
<li><a class="reference internal" href="#connection-string-options" id="id5">Connection String Options</a></li>
<li><a class="reference internal" href="#connections-connection-examples" id="id6">Examples</a></li>
</ul>
</div>
<p>This document describes the URI formats for defining connections
between applications and MongoDB instances in the official MongoDB
<a class="reference external" href="https://docs.mongodb.com/ecosystem/drivers">drivers</a>. For a list of drivers and links to
driver documentation, see <a class="reference external" href="https://docs.mongodb.com/ecosystem/drivers">drivers</a>.</p>
<div class="section" id="connection-string-formats">
<h2>Connection String Formats<a class="headerlink" href="#connection-string-formats" title="Permalink to this headline">¶</a></h2>
<p>You can specify the MongoDB connection string using either:</p>
<ul class="simple">
<li>the <a class="reference internal" href="#connections-standard-connection-string-format"><span class="std std-ref">Standard Connection String Format</span></a> or</li>
<li>the <a class="reference internal" href="#connections-dns-seedlist"><span class="std std-ref">DNS Seedlist Connection Format</span></a>.</li>
</ul>
<div class="section" id="standard-connection-string-format">
<span id="connections-standard-connection-string-format"></span><span id="index-1"></span><h3>Standard Connection String Format<a class="headerlink" href="#standard-connection-string-format" title="Permalink to this headline">¶</a></h3>
<p>This section describes the standard format of the MongoDB connection
URI used to connect to a MongoDB deployment: standalone, replica set,
or a sharded cluster.</p>
<p>The standard URI connection scheme has the form:</p>
<div class="button-code-block">
<div class="button-row">
<a class="code-button--copy code-button" role="button">
copy</a>
</div>
<div class="copyable-code-block highlight-none"><div class="highlight"><pre><span></span>mongodb://[username:password@]host1[:port1][,...hostN[:portN]][/[defaultauthdb][?options]]
</pre></div>
</div>
</div>
<div class="section" id="examples">
<h4>Examples<a class="headerlink" href="#examples" title="Permalink to this headline">¶</a></h4>
<div class="docutils container">
<div class="tabs" >
  <ul class="tab-strip tab-strip--singleton" role="tablist">
    <li class="tab-strip__element" data-tabid="standalone" role="tab" aria-selected="true">Standalone</li>
    <li class="tab-strip__element" data-tabid="repl" role="tab" aria-selected="false">Replica Set</li>
    <li class="tab-strip__element" data-tabid="sharded" role="tab" aria-selected="false">Sharded Cluster</li>
  </ul>
  <div class="tabs__content" role="tabpanel">
    <div class="tabpanel-standalone" data-tabid="standalone"><ul>
<li><p class="first">For a standalone:</p>
<div class="button-code-block">
<div class="button-row">
<a class="code-button--copy code-button" role="button">
copy</a>
</div>
<div class="copyable-code-block highlight-sh"><div class="highlight"><pre><span></span>mongodb://mongodb0.example.com:27017
</pre></div>
</div>
</div>
</li>
<li><p class="first">For a standalone that <a class="reference internal" href="../tutorial/enable-authentication.html"><span class="doc">enforces access control</span></a>:</p>
<div class="button-code-block">
<div class="button-row">
<a class="code-button--copy code-button" role="button">
copy</a>
</div>
<div class="copyable-code-block highlight-sh"><div class="highlight"><pre><span></span>mongodb://myDBReader:D1fficultP%40ssw0rd@mongodb0.example.com:27017/?authSource<span class="o">=</span>admin
</pre></div>
</div>
</div>
<p>If the username or password includes the at sign <code class="docutils literal"><span class="pre">&#64;</span></code>, colon <code class="docutils literal"><span class="pre">:</span></code>,
slash <code class="docutils literal"><span class="pre">/</span></code>, or the percent sign <code class="docutils literal"><span class="pre">%</span></code> character, use <a class="reference external" href="https://tools.ietf.org/html/rfc3986#section-2.1">percent
encoding</a>.</p>
</li>
</ul>
</div>
<div class="tabpanel-repl" data-tabid="repl"><div class="admonition note">
<p class="first admonition-title">Note</p>
<p>For a replica set, specify the hostname(s) of the <a class="reference internal" href="program/mongod.html#bin.mongod" title="bin.mongod"><code class="xref mongodb mongodb-binary docutils literal"><span class="pre">mongod</span></code></a>
instance(s) as listed in the replica set configuration.</p>
<p class="last">For a replica set, include the <a class="reference internal" href="#urioption.replicaSet" title="replicaSet"><code class="xref mongodb mongodb-urioption docutils literal"><span class="pre">replicaSet</span></code></a>
option.</p>
</div>
<ul>
<li><p class="first">For a replica set:</p>
<div class="button-code-block">
<div class="button-row">
<a class="code-button--copy code-button" role="button">
copy</a>
</div>
<div class="copyable-code-block highlight-sh"><div class="highlight"><pre><span></span>mongodb://mongodb0.example.com:27017,mongodb1.example.com:27017,mongodb2.example.com:27017/?replicaSet<span class="o">=</span>myRepl
</pre></div>
</div>
</div>
</li>
<li><p class="first">For a replica set that <a class="reference internal" href="../tutorial/enable-authentication.html"><span class="doc">enforces access control</span></a>, include
user credentials:</p>
<div class="button-code-block">
<div class="button-row">
<a class="code-button--copy code-button" role="button">
copy</a>
</div>
<div class="copyable-code-block highlight-sh"><div class="highlight"><pre><span></span>mongodb://myDBReader:D1fficultP%40ssw0rd@mongodb0.example.com:27017,mongodb1.example.com:27017,mongodb2.example.com:27017/?authSource<span class="o">=</span>admin<span class="p">&amp;</span><span class="nv">replicaSet</span><span class="o">=</span>myRepl
</pre></div>
</div>
</div>
<p>If the username or password includes the at sign <code class="docutils literal"><span class="pre">&#64;</span></code>, colon <code class="docutils literal"><span class="pre">:</span></code>,
slash <code class="docutils literal"><span class="pre">/</span></code>, or the percent sign <code class="docutils literal"><span class="pre">%</span></code> character, use <a class="reference external" href="https://tools.ietf.org/html/rfc3986#section-2.1">percent
encoding</a>.</p>
</li>
</ul>
</div>
<div class="tabpanel-sharded" data-tabid="sharded"><div class="admonition note">
<p class="first admonition-title">Note</p>
<p class="last">For a connection string to a sharded cluster, specify
<a class="reference internal" href="program/mongos.html#bin.mongos" title="bin.mongos"><code class="xref mongodb mongodb-binary docutils literal"><span class="pre">mongos</span></code></a> hosts in the connection string.</p>
</div>
<ul>
<li><p class="first">For a sharded cluster:</p>
<div class="button-code-block">
<div class="button-row">
<a class="code-button--copy code-button" role="button">
copy</a>
</div>
<div class="copyable-code-block highlight-sh"><div class="highlight"><pre><span></span>mongodb://mongos0.example.com:27017,mongos1.example.com:27017,mongos2.example.com:27017
</pre></div>
</div>
</div>
</li>
<li><p class="first">For a sharded cluster that <a class="reference internal" href="../tutorial/enable-authentication.html"><span class="doc">enforces access
control</span></a>, include
user credentials:</p>
<div class="button-code-block">
<div class="button-row">
<a class="code-button--copy code-button" role="button">
copy</a>
</div>
<div class="copyable-code-block highlight-sh"><div class="highlight"><pre><span></span>mongodb://myDBReader:D1fficultP%40ssw0rd@mongos0.example.com:27017,mongos1.example.com:27017,mongos2.example.com:27017/?authSource<span class="o">=</span>admin
</pre></div>
</div>
</div>
<p>If the username or password includes the at sign <code class="docutils literal"><span class="pre">&#64;</span></code>, colon <code class="docutils literal"><span class="pre">:</span></code>,
slash <code class="docutils literal"><span class="pre">/</span></code>, or the percent sign <code class="docutils literal"><span class="pre">%</span></code> character, use <a class="reference external" href="https://tools.ietf.org/html/rfc3986#section-2.1">percent
encoding</a>.</p>
</li>
</ul>
    </div>
  </div>
</div><p>For more examples, see <a class="reference internal" href="#connections-connection-examples"><span class="std std-ref">Examples</span></a>.</p>
</div>
</div>
<div class="section" id="components">
<h4>Components<a class="headerlink" href="#components" title="Permalink to this headline">¶</a></h4>
<div class="docutils container">
<p>The standard URI connection string includes the following components:</p>
<table border="1" class="colwidths-given docutils">
<colgroup>
<col width="20%" />
<col width="80%" />
</colgroup>
<thead valign="bottom">
<tr class="row-odd"><th class="head">Component</th>
<th class="head">Description</th>
</tr>
</thead>
<tbody valign="top">
<tr class="row-even"><td><code class="docutils literal"><span class="pre">mongodb://</span></code></td>
<td>A required prefix to identify that this is a string in the
standard connection format.</td>
</tr>
<tr class="row-odd"><td><code class="docutils literal"><span class="pre">username:password&#64;</span></code></td>
<td><p class="first">Optional. Authentication credentials.</p>
<p>If specified, the client will attempt to authenticate the
user to the <a class="reference internal" href="#urioption.authSource" title="authSource"><code class="xref mongodb mongodb-urioption docutils literal"><span class="pre">authSource</span></code></a>. If
<a class="reference internal" href="#urioption.authSource" title="authSource"><code class="xref mongodb mongodb-urioption docutils literal"><span class="pre">authSource</span></code></a> is unspecified, the client will
attempt to authenticate the user to the <code class="docutils literal"><span class="pre">defaultauthdb</span></code>.
And if the <code class="docutils literal"><span class="pre">defaultauthdb</span></code> is unspecified, to the <code class="docutils literal"><span class="pre">admin</span></code>
database.</p>
<p>If the username or password includes the at sign <code class="docutils literal"><span class="pre">&#64;</span></code>, colon <code class="docutils literal"><span class="pre">:</span></code>,
slash <code class="docutils literal"><span class="pre">/</span></code>, or the percent sign <code class="docutils literal"><span class="pre">%</span></code> character, use <a class="reference external" href="https://tools.ietf.org/html/rfc3986#section-2.1">percent
encoding</a>.</p>
<p class="last">See also <a class="reference internal" href="#urioption.authSource" title="authSource"><code class="xref mongodb mongodb-urioption docutils literal"><span class="pre">authSource</span></code></a>.</p>
</td>
</tr>
<tr class="row-even"><td><code class="docutils literal"><span class="pre">host[:port]</span></code></td>
<td><p class="first">The host (and optional port number) where the
<a class="reference internal" href="program/mongod.html#bin.mongod" title="bin.mongod"><code class="xref mongodb mongodb-binary docutils literal"><span class="pre">mongod</span></code></a> instance (or <a class="reference internal" href="program/mongos.html#bin.mongos" title="bin.mongos"><code class="xref mongodb mongodb-binary docutils literal"><span class="pre">mongos</span></code></a>
instance for a sharded cluster) is running. You can specify a
hostname, IP address, or UNIX domain socket. Specify as many
hosts as appropriate for your deployment topology:</p>
<ul class="simple">
<li>For a standalone, specify the hostname of the standalone
<a class="reference internal" href="program/mongod.html#bin.mongod" title="bin.mongod"><code class="xref mongodb mongodb-binary docutils literal"><span class="pre">mongod</span></code></a> instance.</li>
<li>For a replica set, specify the hostname(s) of the <a class="reference internal" href="program/mongod.html#bin.mongod" title="bin.mongod"><code class="xref mongodb mongodb-binary docutils literal"><span class="pre">mongod</span></code></a>
instance(s) as listed in the replica set configuration.</li>
<li>For a sharded cluster, specify the hostname(s) of the
<a class="reference internal" href="program/mongos.html#bin.mongos" title="bin.mongos"><code class="xref mongodb mongodb-binary docutils literal"><span class="pre">mongos</span></code></a> instance(s).</li>
</ul>
<p class="last">If the port number is not specified, the default port <code class="docutils literal"><span class="pre">27017</span></code>
is used.</p>
</td>
</tr>
<tr class="row-odd"><td><code class="docutils literal"><span class="pre">/defaultauthdb</span></code></td>
<td><p class="first">Optional. The authentication database to use if the
connection string includes <code class="docutils literal"><span class="pre">username:password&#64;</span></code>
authentication credentials but the <a class="reference internal" href="#urioption.authSource" title="authSource"><code class="xref mongodb mongodb-urioption docutils literal"><span class="pre">authSource</span></code></a> option
is unspecified.</p>
<p class="last">If both <a class="reference internal" href="#urioption.authSource" title="authSource"><code class="xref mongodb mongodb-urioption docutils literal"><span class="pre">authSource</span></code></a> and <code class="docutils literal"><span class="pre">defaultauthdb</span></code> are
unspecified, the client will attempt to authenticate the
specified user to the <code class="docutils literal"><span class="pre">admin</span></code> database.</p>
</td>
</tr>
<tr class="row-even"><td><code class="docutils literal"><span class="pre">?&lt;options&gt;</span></code></td>
<td><p class="first">Optional. A query string that specifies connection specific
options as <code class="docutils literal"><span class="pre">&lt;name&gt;=&lt;value&gt;</span></code> pairs. See
<a class="reference internal" href="#connections-connection-options"><span class="std std-ref">Connection String Options</span></a> for a full description of
these options.</p>
<p class="last">If the connection string does not specify a database/ you must
specify a slash (<code class="docutils literal"><span class="pre">/</span></code>) between the last <code class="docutils literal"><span class="pre">host</span></code> and the
question mark (<code class="docutils literal"><span class="pre">?</span></code>) that begins the string of options.</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
<div class="section" id="dns-seedlist-connection-format">
<span id="connections-dns-seedlist"></span><span id="index-2"></span><h3>DNS Seedlist Connection Format<a class="headerlink" href="#dns-seedlist-connection-format" title="Permalink to this headline">¶</a></h3>
<div class="versionadded">
<p><span class="versionmodified">New in version 3.6.</span></p>
</div>
<p>In addition to the standard connection format, MongoDB supports a
<abbr title="Domain Name Service">DNS</abbr>-constructed seed list. Using DNS to
construct the available servers list allows more flexibility of
deployment and the ability to change the servers in rotation without
reconfiguring clients.</p>
<p>In order to leverage the DNS seedlist, use a connection string prefix of
<code class="docutils literal"><span class="pre">mongodb+srv:</span></code> rather than the standard <code class="docutils literal"><span class="pre">mongodb:</span></code>. The <code class="docutils literal"><span class="pre">+srv</span></code>
indicates to the client that the hostname that follows corresponds to a
DNS SRV record. The driver or <a class="reference internal" href="program/mongo.html#bin.mongo" title="bin.mongo"><code class="xref mongodb mongodb-binary docutils literal"><span class="pre">mongo</span></code></a> shell will then
query the DNS for the record to determine which hosts are running the
<a class="reference internal" href="program/mongod.html#bin.mongod" title="bin.mongod"><code class="xref mongodb mongodb-binary docutils literal"><span class="pre">mongod</span></code></a> instances.</p>
<div class="admonition note">
<p class="first admonition-title">Note</p>
<p class="last">Use of the <code class="docutils literal"><span class="pre">+srv</span></code> connection string modifier
automatically sets the <a class="reference internal" href="#urioption.tls" title="tls"><code class="xref mongodb mongodb-urioption docutils literal"><span class="pre">tls</span></code></a> (or the equivalent
<a class="reference internal" href="#urioption.ssl" title="ssl"><code class="xref mongodb mongodb-urioption docutils literal"><span class="pre">ssl</span></code></a>) option to <code class="docutils literal"><span class="pre">true</span></code> for the connection. You can
override this behavior by explicitly setting the <a class="reference internal" href="#urioption.tls" title="tls"><code class="xref mongodb mongodb-urioption docutils literal"><span class="pre">tls</span></code></a>
(or the equivalent <a class="reference internal" href="#urioption.ssl" title="ssl"><code class="xref mongodb mongodb-urioption docutils literal"><span class="pre">ssl</span></code></a>) option to <code class="docutils literal"><span class="pre">false</span></code> with
<code class="docutils literal"><span class="pre">tls=false</span></code> (or <code class="docutils literal"><span class="pre">ssl=false</span></code>) in the query string.</p>
</div>
<p>The following example shows a typical connection string for a DNS
seedlist connection string:</p>
<div class="button-code-block">
<div class="button-row">
<a class="code-button--copy code-button" role="button">
copy</a>
</div>
<div class="copyable-code-block highlight-none"><div class="highlight"><pre><span></span>mongodb+srv://server.example.com/
</pre></div>
</div>
</div>
<p>The corresponding DNS configuration might resemble:</p>
<div class="button-code-block">
<div class="button-row">
<a class="code-button--copy code-button" role="button">
copy</a>
</div>
<div class="copyable-code-block highlight-none"><div class="highlight"><pre><span></span>Record                            TTL   Class    Priority Weight Port  Target
_mongodb._tcp.server.example.com. 86400 IN SRV   0        5      27317 mongodb1.example.com.
_mongodb._tcp.server.example.com. 86400 IN SRV   0        5      27017 mongodb2.example.com.
</pre></div>
</div>
</div>
<div class="admonition important">
<p class="first admonition-title">Important</p>
<p class="last">The hostnames returned in SRV records must share the same parent
domain (in this example, <code class="docutils literal"><span class="pre">example.com</span></code>) as the given hostname. If
the parent domains and hostname do not match, you will not be able to
connect.</p>
</div>
<p>Like the standard connection string, the DNS seedlist connection string
supports specifying options as a query string. With a DNS seedlist
connection string, you can <em>also</em> specify the following options via a
TXT record:</p>
<ul class="simple">
<li><code class="docutils literal"><span class="pre">replicaSet</span></code></li>
<li><code class="docutils literal"><span class="pre">authSource</span></code></li>
</ul>
<p>You may only specify one TXT record per <a class="reference internal" href="program/mongod.html#bin.mongod" title="bin.mongod"><code class="xref mongodb mongodb-binary docutils literal"><span class="pre">mongod</span></code></a> instance.
If multiple TXT records appear in the DNS and/or if the TXT
record contains an option other than <code class="docutils literal"><span class="pre">replicaSet</span></code> or <code class="docutils literal"><span class="pre">authSource</span></code>,
the client will return an error.</p>
<p>The TXT record for the <code class="docutils literal"><span class="pre">server.example.com</span></code> DNS entry would resemble:</p>
<div class="button-code-block">
<div class="button-row">
<a class="code-button--copy code-button" role="button">
copy</a>
</div>
<div class="copyable-code-block highlight-none"><div class="highlight"><pre><span></span>Record              TTL   Class    Text
server.example.com. 86400 IN TXT   &quot;replicaSet=mySet&amp;authSource=authDB&quot;
</pre></div>
</div>
</div>
<p>Taken together, the DNS SRV records and the options specified in the TXT
record resolve to the following standard format connection string:</p>
<div class="button-code-block">
<div class="button-row">
<a class="code-button--copy code-button" role="button">
copy</a>
</div>
<div class="copyable-code-block highlight-none"><div class="highlight"><pre><span></span>mongodb://mongodb1.example.com:27317,mongodb2.example.com:27017/?replicaSet=mySet&amp;authSource=authDB
</pre></div>
</div>
</div>
<p>You can override the options specified in a TXT record by passing the option
in the query string. In the following example, the query string has provided
an override for the <code class="docutils literal"><span class="pre">authSource</span></code> option configured in the TXT record
of the DNS entry above.</p>
<div class="button-code-block">
<div class="button-row">
<a class="code-button--copy code-button" role="button">
copy</a>
</div>
<div class="copyable-code-block highlight-none"><div class="highlight"><pre><span></span>mongodb+srv://server.example.com/?connectTimeoutMS=300000&amp;authSource=aDifferentAuthDB
</pre></div>
</div>
</div>
<p>Given the override for the <code class="docutils literal"><span class="pre">authSource</span></code>, the equivalent connection
string in the standard format would be:</p>
<div class="button-code-block">
<div class="button-row">
<a class="code-button--copy code-button" role="button">
copy</a>
</div>
<div class="copyable-code-block highlight-none"><div class="highlight"><pre><span></span>mongodb://mongodb1.example.com:27317,mongodb2.example.com:27017/?connectTimeoutMS=300000&amp;replicaSet=mySet&amp;authSource=aDifferentAuthDB
</pre></div>
</div>
</div>
<div class="admonition note">
<p class="first admonition-title">Note</p>
<p class="last">The <code class="docutils literal"><span class="pre">mongodb+srv</span></code> option will fail if there is no available DNS
with records that correspond to the hostname identified in the
connection string. In addition, use of the <code class="docutils literal"><span class="pre">+srv</span></code> connection string modifier
automatically sets the <a class="reference internal" href="#urioption.tls" title="tls"><code class="xref mongodb mongodb-urioption docutils literal"><span class="pre">tls</span></code></a> (or the equivalent
<a class="reference internal" href="#urioption.ssl" title="ssl"><code class="xref mongodb mongodb-urioption docutils literal"><span class="pre">ssl</span></code></a>) option to <code class="docutils literal"><span class="pre">true</span></code> for the connection. You can
override this behavior by explicitly setting the <a class="reference internal" href="#urioption.tls" title="tls"><code class="xref mongodb mongodb-urioption docutils literal"><span class="pre">tls</span></code></a>
(or the equivalent <a class="reference internal" href="#urioption.ssl" title="ssl"><code class="xref mongodb mongodb-urioption docutils literal"><span class="pre">ssl</span></code></a>) option to <code class="docutils literal"><span class="pre">false</span></code> with
<code class="docutils literal"><span class="pre">tls=false</span></code> (or <code class="docutils literal"><span class="pre">ssl=false</span></code>) in the query string.</p>
</div>
<div class="admonition-see admonition">
<p class="first admonition-title">See</p>
<p class="last"><a class="reference internal" href="program/mongo.html#example-connect-mongo-using-srv"><span class="std std-ref">Connect to a Replica Set Using the DNS Seedlist Connection Format</span></a> provides an example of
connecting the <a class="reference internal" href="program/mongo.html#bin.mongo" title="bin.mongo"><code class="xref mongodb mongodb-binary docutils literal"><span class="pre">mongo</span></code></a> shell to a replica set using
the DNS Seedlist Connection Format.</p>
</div>
</div>
</div>
<div class="section" id="connection-string-options">
<span id="connections-connection-options"></span><span id="index-3"></span><h2>Connection String Options<a class="headerlink" href="#connection-string-options" title="Permalink to this headline">¶</a></h2>
<p>This section lists all connection options.</p>
<p>Connection options are pairs in the following form: <code class="docutils literal"><span class="pre">name=value</span></code>.</p>
<ul class="simple">
<li>The option <code class="docutils literal"><span class="pre">name</span></code> is case insensitive when using a driver.</li>
<li>The option <code class="docutils literal"><span class="pre">name</span></code> is case insensitive when using a version 4.2+
<a class="reference internal" href="program/mongo.html#bin.mongo" title="bin.mongo"><code class="xref mongodb mongodb-binary docutils literal"><span class="pre">mongo</span></code></a> shell.</li>
<li>The option <code class="docutils literal"><span class="pre">name</span></code> is case sensitive when using a version 4.0 and
earlier <a class="reference internal" href="program/mongo.html#bin.mongo" title="bin.mongo"><code class="xref mongodb mongodb-binary docutils literal"><span class="pre">mongo</span></code></a> shell.</li>
<li>The <code class="docutils literal"><span class="pre">value</span></code> is always case sensitive.</li>
</ul>
<p>Separate options with the ampersand (i.e. <code class="docutils literal"><span class="pre">&amp;</span></code>) character
<code class="docutils literal"><span class="pre">name1=value1&amp;name2=value2</span></code>. In the following example, a
connection includes the <a class="reference internal" href="#urioption.replicaSet" title="replicaSet"><code class="xref mongodb mongodb-urioption docutils literal"><span class="pre">replicaSet</span></code></a> and
<a class="reference internal" href="#urioption.connectTimeoutMS" title="connectTimeoutMS"><code class="xref mongodb mongodb-urioption docutils literal"><span class="pre">connectTimeoutMS</span></code></a> options:</p>
<div class="button-code-block">
<div class="button-row">
<a class="code-button--copy code-button" role="button">
copy</a>
</div>
<div class="copyable-code-block highlight-none"><div class="highlight"><pre><span></span>mongodb://db1.example.net:27017,db2.example.net:2500/?replicaSet=test&amp;connectTimeoutMS=300000
</pre></div>
</div>
</div>
<div class="admonition-semi-colon-separator-for-connection-string-arguments admonition">
<p class="first admonition-title">Semi-colon separator for connection string arguments</p>
<p class="last">To provide backwards compatibility, drivers currently accept
semi-colons (i.e. <code class="docutils literal"><span class="pre">;</span></code>) as option separators.</p>
</div>
<div class="section" id="replica-set-option">
<span id="replica-set-options"></span><span id="id1"></span><h3>Replica Set Option<a class="headerlink" href="#replica-set-option" title="Permalink to this headline">¶</a></h3>
<p>The following connection string to a replica set named <code class="docutils literal"><span class="pre">myRepl</span></code> with
members running on the specified hosts:</p>
<div class="button-code-block">
<div class="button-row">
<a class="code-button--copy code-button" role="button">
copy</a>
</div>
<div class="copyable-code-block highlight-sh"><div class="highlight"><pre><span></span>mongodb://db0.example.com:27017,db1.example.com:27017,db2.example.com:27017/?replicaSet<span class="o">=</span>myRepl
</pre></div>
</div>
</div>
<table border="1" class="colwidths-given docutils">
<colgroup>
<col width="30%" />
<col width="70%" />
</colgroup>
<thead valign="bottom">
<tr class="row-odd"><th class="head">Connection Option</th>
<th class="head">Description</th>
</tr>
</thead>
<tbody valign="top">
<tr class="row-even"><td><dl class="first last urioption">
<dt id="urioption.replicaSet">
<code class="descname">replicaSet</code><a class="headerlink" href="#urioption.replicaSet" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>

</td>
<td><p class="first">Specifies the name of the <a class="reference internal" href="glossary.html#term-replica-set"><span class="xref std std-term">replica set</span></a>, if the
<a class="reference internal" href="program/mongod.html#bin.mongod" title="bin.mongod"><code class="xref mongodb mongodb-binary docutils literal"><span class="pre">mongod</span></code></a> is a member of a replica set.</p>
<p class="last">When connecting to a replica set, provide a seed list of the
replica set member(s) to the <code class="docutils literal"><span class="pre">host[:port]</span></code> component of the
uri. For specific details, refer to your <a class="reference external" href="https://docs.mongodb.com/ecosystem/drivers">driver</a> documentation.</p>
</td>
</tr>
</tbody>
</table>
</div>
<div class="section" id="connection-options">
<h3>Connection Options<a class="headerlink" href="#connection-options" title="Permalink to this headline">¶</a></h3>
<div class="section" id="tls-options">
<span id="uri-options-tls"></span><h4>TLS Options<a class="headerlink" href="#tls-options" title="Permalink to this headline">¶</a></h4>
<div class="docutils container">
<p>The following connection string to a replica set includes
<a class="reference internal" href="#urioption.tls" title="tls"><code class="xref mongodb mongodb-urioption docutils literal"><span class="pre">tls=true</span></code></a> option (available starting in MongoDB 4.2):</p>
<div class="button-code-block">
<div class="button-row">
<a class="code-button--copy code-button" role="button">
copy</a>
</div>
<div class="copyable-code-block highlight-none"><div class="highlight"><pre><span></span>mongodb://db0.example.com,db1.example.com,db2.example.com/?replicaSet=myRepl&amp;tls=true
</pre></div>
</div>
</div>
<p>Alternatively, you can also use the equivalent <a class="reference internal" href="#urioption.ssl" title="ssl"><code class="xref mongodb mongodb-urioption docutils literal"><span class="pre">ssl=true</span></code></a> option:</p>
<div class="button-code-block">
<div class="button-row">
<a class="code-button--copy code-button" role="button">
copy</a>
</div>
<div class="copyable-code-block highlight-none"><div class="highlight"><pre><span></span>mongodb://db0.example.com,db1.example.com,db2.example.com/?replicaSet=myRepl&amp;ssl=true
</pre></div>
</div>
</div>
<table border="1" class="colwidths-given docutils">
<colgroup>
<col width="30%" />
<col width="70%" />
</colgroup>
<thead valign="bottom">
<tr class="row-odd"><th class="head">Connection Option</th>
<th class="head">Description</th>
</tr>
</thead>
<tbody valign="top">
<tr class="row-even"><td><dl class="first last urioption">
<dt id="urioption.tls">
<code class="descname">tls</code><a class="headerlink" href="#urioption.tls" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>

</td>
<td><p class="first">Enables or disables TLS/SSL for the connection:</p>
<ul class="simple">
<li><code class="docutils literal"><span class="pre">true</span></code>: Initiate the connection with TLS/SSL. Default for
<a class="reference internal" href="#connections-dns-seedlist"><span class="std std-ref">DNS Seedlist Connection Format</span></a>.</li>
<li><code class="docutils literal"><span class="pre">false</span></code>: Initiate the connection without TLS/SSL. Default for
<a class="reference internal" href="#connections-standard-connection-string-format"><span class="std std-ref">Standard Connection String Format</span></a>.</li>
</ul>
<div class="admonition note">
<p class="first admonition-title">Note</p>
<p class="last">The <a class="reference internal" href="#urioption.tls" title="tls"><code class="xref mongodb mongodb-urioption docutils literal"><span class="pre">tls</span></code></a> option is equivalent to the
<a class="reference internal" href="#urioption.ssl" title="ssl"><code class="xref mongodb mongodb-urioption docutils literal"><span class="pre">ssl</span></code></a> option.</p>
</div>
<p>If the <code class="xref mongodb mongodb-binary docutils literal"><span class="pre">mongo</span></code> shell specifies additional
<a class="reference internal" href="program/mongo.html#mongo-shell-tls"><span class="std std-ref">tls/ssl</span></a> options from the
command-line, use the <a class="reference internal" href="program/mongo.html#cmdoption-mongo-tls"><code class="xref std std-option docutils literal"><span class="pre">--tls</span></code></a>
command-line option instead.</p>
<div class="last versionadded">
<p><span class="versionmodified">New in version 4.2.</span></p>
</div>
</td>
</tr>
<tr class="row-odd"><td><dl class="first last urioption">
<dt id="urioption.ssl">
<code class="descname">ssl</code><a class="headerlink" href="#urioption.ssl" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>

</td>
<td><p class="first">A boolean to enable or disables TLS/SSL for the connection:</p>
<ul class="simple">
<li><code class="docutils literal"><span class="pre">true</span></code>: Initiate the connection with TLS/SSL. Default for
<a class="reference internal" href="#connections-dns-seedlist"><span class="std std-ref">DNS Seedlist Connection Format</span></a>.</li>
<li><code class="docutils literal"><span class="pre">false</span></code>: Initiate the connection without TLS/SSL. Default
for <a class="reference internal" href="#connections-standard-connection-string-format"><span class="std std-ref">Standard Connection String Format</span></a>.</li>
</ul>
<div class="admonition note">
<p class="first admonition-title">Note</p>
<p class="last">The <a class="reference internal" href="#urioption.ssl" title="ssl"><code class="xref mongodb mongodb-urioption docutils literal"><span class="pre">ssl</span></code></a> option is equivalent to the
<a class="reference internal" href="#urioption.tls" title="tls"><code class="xref mongodb mongodb-urioption docutils literal"><span class="pre">tls</span></code></a> option.</p>
</div>
<p class="last">If the <code class="xref mongodb mongodb-binary docutils literal"><span class="pre">mongo</span></code> shell specifies additional
<a class="reference internal" href="program/mongo.html#mongo-shell-ssl"><span class="std std-ref">tls/ssl</span></a> options from the
command-line, use the <a class="reference internal" href="program/mongo.html#cmdoption-mongo-ssl"><code class="xref std std-option docutils literal"><span class="pre">--ssl</span></code></a>
command-line option instead.</p>
</td>
</tr>
<tr class="row-even"><td><dl class="first last urioption">
<dt id="urioption.tlsCertificateKeyFile">
<code class="descname">tlsCertificateKeyFile</code><a class="headerlink" href="#urioption.tlsCertificateKeyFile" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>

</td>
<td><p class="first">Specifies the location of a local <code class="file docutils literal"><span class="pre">.pem</span></code> file that
contains either the client’s TLS/SSL certificate or the
client’s TLS/SSL certificate and key.</p>
<p>The client presents this file to the
<a class="reference internal" href="program/mongod.html#bin.mongod" title="bin.mongod"><code class="xref mongodb mongodb-binary docutils literal"><span class="pre">mongod</span></code></a>/<a class="reference internal" href="program/mongos.html#bin.mongos" title="bin.mongos"><code class="xref mongodb mongodb-binary docutils literal"><span class="pre">mongos</span></code></a> instance.</p>
<p>This option is not supported by all drivers. Refer to the
<a class="reference external" href="https://docs.mongodb.com/ecosystem/drivers">drivers</a> documentation.</p>
<p>This connection string option is not available for the <code class="xref mongodb mongodb-binary docutils literal"><span class="pre">mongo</span></code>
shell and the MongoDB utility programs (e.g. <a class="reference internal" href="program/mongodump.html#bin.mongodump" title="bin.mongodump"><code class="xref mongodb mongodb-binary docutils literal"><span class="pre">mongodump</span></code></a>,
<a class="reference internal" href="program/mongorestore.html#bin.mongorestore" title="bin.mongorestore"><code class="xref mongodb mongodb-binary docutils literal"><span class="pre">mongorestore</span></code></a>). Use the command-line options instead.</p>
<div class="last versionadded">
<p><span class="versionmodified">New in version 4.2.</span></p>
</div>
</td>
</tr>
<tr class="row-odd"><td><dl class="first last urioption">
<dt id="urioption.tlsCertificateKeyFilePassword">
<code class="descname">tlsCertificateKeyFilePassword</code><a class="headerlink" href="#urioption.tlsCertificateKeyFilePassword" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>

</td>
<td><p class="first">Specifies the password to de-crypt the
<a class="reference internal" href="#urioption.tlsCertificateKeyFile" title="tlsCertificateKeyFile"><code class="xref mongodb mongodb-urioption docutils literal"><span class="pre">tlsCertificateKeyFile</span></code></a>.</p>
<p>This option is not supported by all drivers. Refer to the
<a class="reference external" href="https://docs.mongodb.com/ecosystem/drivers">drivers</a> documentation.</p>
<p>This connection string option is not available for the <code class="xref mongodb mongodb-binary docutils literal"><span class="pre">mongo</span></code>
shell and the MongoDB utility programs (e.g. <a class="reference internal" href="program/mongodump.html#bin.mongodump" title="bin.mongodump"><code class="xref mongodb mongodb-binary docutils literal"><span class="pre">mongodump</span></code></a>,
<a class="reference internal" href="program/mongorestore.html#bin.mongorestore" title="bin.mongorestore"><code class="xref mongodb mongodb-binary docutils literal"><span class="pre">mongorestore</span></code></a>). Use the command-line options instead.</p>
<div class="last versionadded">
<p><span class="versionmodified">New in version 4.2.</span></p>
</div>
</td>
</tr>
<tr class="row-even"><td><dl class="first last urioption">
<dt id="urioption.tlsCAFile">
<code class="descname">tlsCAFile</code><a class="headerlink" href="#urioption.tlsCAFile" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>

</td>
<td><p class="first">Specifies the location of a local <code class="file docutils literal"><span class="pre">.pem</span></code> file that
contains the root certificate chain from the Certificate
Authority. This file is used to validate the certificate
presented by the <a class="reference internal" href="program/mongod.html#bin.mongod" title="bin.mongod"><code class="xref mongodb mongodb-binary docutils literal"><span class="pre">mongod</span></code></a>/<a class="reference internal" href="program/mongos.html#bin.mongos" title="bin.mongos"><code class="xref mongodb mongodb-binary docutils literal"><span class="pre">mongos</span></code></a>
instance.</p>
<p>This option is not supported by all drivers. Refer to the
<a class="reference external" href="https://docs.mongodb.com/ecosystem/drivers">drivers</a> documentation.</p>
<p>This connection string option is not available for the <code class="xref mongodb mongodb-binary docutils literal"><span class="pre">mongo</span></code>
shell and the MongoDB utility programs (e.g. <a class="reference internal" href="program/mongodump.html#bin.mongodump" title="bin.mongodump"><code class="xref mongodb mongodb-binary docutils literal"><span class="pre">mongodump</span></code></a>,
<a class="reference internal" href="program/mongorestore.html#bin.mongorestore" title="bin.mongorestore"><code class="xref mongodb mongodb-binary docutils literal"><span class="pre">mongorestore</span></code></a>). Use the command-line options instead.</p>
<div class="last versionadded">
<p><span class="versionmodified">New in version 4.2.</span></p>
</div>
</td>
</tr>
<tr class="row-odd"><td><dl class="first last urioption">
<dt id="urioption.tlsAllowInvalidCertificates">
<code class="descname">tlsAllowInvalidCertificates</code><a class="headerlink" href="#urioption.tlsAllowInvalidCertificates" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>

</td>
<td><p class="first">Bypasses validation of the certificates presented by the
<a class="reference internal" href="program/mongod.html#bin.mongod" title="bin.mongod"><code class="xref mongodb mongodb-binary docutils literal"><span class="pre">mongod</span></code></a>/<a class="reference internal" href="program/mongos.html#bin.mongos" title="bin.mongos"><code class="xref mongodb mongodb-binary docutils literal"><span class="pre">mongos</span></code></a> instance</p>
<p>Set to <code class="docutils literal"><span class="pre">true</span></code> to connect to MongoDB instances even if the
server’s present invalid certificates.</p>
<p>This option is not supported by all drivers. Refer to the
<a class="reference external" href="https://docs.mongodb.com/ecosystem/drivers">drivers</a> documentation.</p>
<p>This connection string option is not available for the <code class="xref mongodb mongodb-binary docutils literal"><span class="pre">mongo</span></code>
shell and the MongoDB utility programs (e.g. <a class="reference internal" href="program/mongodump.html#bin.mongodump" title="bin.mongodump"><code class="xref mongodb mongodb-binary docutils literal"><span class="pre">mongodump</span></code></a>,
<a class="reference internal" href="program/mongorestore.html#bin.mongorestore" title="bin.mongorestore"><code class="xref mongodb mongodb-binary docutils literal"><span class="pre">mongorestore</span></code></a>). Use the command-line options instead.</p>
<div class="admonition warning">
<p class="first admonition-title">Warning</p>
<p class="last">Disabling certificate validation creates a vulnerability.</p>
</div>
<div class="last versionadded">
<p><span class="versionmodified">New in version 4.2.</span></p>
</div>
</td>
</tr>
<tr class="row-even"><td><dl class="first last urioption">
<dt id="urioption.tlsAllowInvalidHostnames">
<code class="descname">tlsAllowInvalidHostnames</code><a class="headerlink" href="#urioption.tlsAllowInvalidHostnames" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>

</td>
<td><p class="first">Disables hostname validation of the certificate presented by
the <a class="reference internal" href="program/mongod.html#bin.mongod" title="bin.mongod"><code class="xref mongodb mongodb-binary docutils literal"><span class="pre">mongod</span></code></a>/<a class="reference internal" href="program/mongos.html#bin.mongos" title="bin.mongos"><code class="xref mongodb mongodb-binary docutils literal"><span class="pre">mongos</span></code></a> instance.</p>
<p>Set to <code class="docutils literal"><span class="pre">true</span></code> to connect to MongoDB instances even if the
hostname in the server certificates do not match the server’s
host.</p>
<p>This option is not supported by all drivers. Refer to the
<a class="reference external" href="https://docs.mongodb.com/ecosystem/drivers">drivers</a> documentation.</p>
<p>This connection string option is not available for the <code class="xref mongodb mongodb-binary docutils literal"><span class="pre">mongo</span></code>
shell and the MongoDB utility programs (e.g. <a class="reference internal" href="program/mongodump.html#bin.mongodump" title="bin.mongodump"><code class="xref mongodb mongodb-binary docutils literal"><span class="pre">mongodump</span></code></a>,
<a class="reference internal" href="program/mongorestore.html#bin.mongorestore" title="bin.mongorestore"><code class="xref mongodb mongodb-binary docutils literal"><span class="pre">mongorestore</span></code></a>). Use the command-line options instead.</p>
<div class="admonition warning">
<p class="first admonition-title">Warning</p>
<p class="last">Disabling certificate validation creates a vulnerability.</p>
</div>
<div class="last versionadded">
<p><span class="versionmodified">New in version 4.2.</span></p>
</div>
</td>
</tr>
<tr class="row-odd"><td><dl class="first last urioption">
<dt id="urioption.tlsInsecure">
<code class="descname">tlsInsecure</code><a class="headerlink" href="#urioption.tlsInsecure" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>

</td>
<td><p class="first">Disables various certificate validations.</p>
<p>Set to <code class="docutils literal"><span class="pre">true</span></code> to disable certificate validations. The exact
validatations disabled vary by drivers. Refer to the
<a class="reference external" href="https://docs.mongodb.com/ecosystem/drivers">drivers</a> documentation.</p>
<p>This connection string option is not available for the <code class="xref mongodb mongodb-binary docutils literal"><span class="pre">mongo</span></code>
shell and the MongoDB utility programs (e.g. <a class="reference internal" href="program/mongodump.html#bin.mongodump" title="bin.mongodump"><code class="xref mongodb mongodb-binary docutils literal"><span class="pre">mongodump</span></code></a>,
<a class="reference internal" href="program/mongorestore.html#bin.mongorestore" title="bin.mongorestore"><code class="xref mongodb mongodb-binary docutils literal"><span class="pre">mongorestore</span></code></a>). Use the command-line options instead.</p>
<div class="admonition warning">
<p class="first admonition-title">Warning</p>
<p class="last">Disabling certificate validation creates a vulnerability.</p>
</div>
<div class="last versionadded">
<p><span class="versionmodified">New in version 4.2.</span></p>
</div>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section" id="timeout-options">
<h4>Timeout Options<a class="headerlink" href="#timeout-options" title="Permalink to this headline">¶</a></h4>
<div class="docutils container">
<table border="1" class="colwidths-given docutils">
<colgroup>
<col width="30%" />
<col width="70%" />
</colgroup>
<thead valign="bottom">
<tr class="row-odd"><th class="head">Connection Option</th>
<th class="head">Description</th>
</tr>
</thead>
<tbody valign="top">
<tr class="row-even"><td><dl class="first last urioption">
<dt id="urioption.connectTimeoutMS">
<code class="descname">connectTimeoutMS</code><a class="headerlink" href="#urioption.connectTimeoutMS" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>

</td>
<td>The time in milliseconds to attempt a connection before timing
out. The default is never to timeout, though different drivers
might vary. See the <a class="reference external" href="https://docs.mongodb.com/ecosystem/drivers">driver</a>
documentation.</td>
</tr>
<tr class="row-odd"><td><dl class="first last urioption">
<dt id="urioption.socketTimeoutMS">
<code class="descname">socketTimeoutMS</code><a class="headerlink" href="#urioption.socketTimeoutMS" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>

</td>
<td>The time in milliseconds to attempt a send or receive on a
socket before the attempt times out. The default is never to
timeout, though different drivers might vary. See the
<a class="reference external" href="https://docs.mongodb.com/ecosystem/drivers">driver</a> documentation.</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section" id="compression-options">
<h4>Compression Options<a class="headerlink" href="#compression-options" title="Permalink to this headline">¶</a></h4>
<div class="docutils container">
<table border="1" class="colwidths-given docutils">
<colgroup>
<col width="30%" />
<col width="70%" />
</colgroup>
<thead valign="bottom">
<tr class="row-odd"><th class="head">Connection Option</th>
<th class="head">Description</th>
</tr>
</thead>
<tbody valign="top">
<tr class="row-even"><td><dl class="first last urioption">
<dt id="urioption.compressors">
<code class="descname">compressors</code><a class="headerlink" href="#urioption.compressors" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>

</td>
<td><p class="first">Comma-delimited string of compressors to enable
network compression for communication between this
client and a <a class="reference internal" href="program/mongod.html#bin.mongod" title="bin.mongod"><code class="xref mongodb mongodb-binary docutils literal"><span class="pre">mongod</span></code></a>/<a class="reference internal" href="program/mongos.html#bin.mongos" title="bin.mongos"><code class="xref mongodb mongodb-binary docutils literal"><span class="pre">mongos</span></code></a>
instance.</p>
<p>You can specify the following compressors:</p>
<ul class="simple">
<li><a class="reference internal" href="glossary.html#term-snappy"><span class="xref std std-term">snappy</span></a></li>
<li><a class="reference internal" href="glossary.html#term-zlib"><span class="xref std std-term">zlib</span></a> (Available in MongoDB 3.6 or greater)</li>
<li><a class="reference internal" href="glossary.html#term-zstd"><span class="xref std std-term">zstd</span></a> (Available in MongoDB 4.2 or greater)</li>
</ul>
<p>If you specify multiple compressors, then the order in which you list
the compressors matter as well as the communication initiator. For
example, if the client specifies the following network
compressors <code class="docutils literal"><span class="pre">&quot;zlib,snappy&quot;</span></code> and the <a class="reference internal" href="program/mongod.html#bin.mongod" title="bin.mongod"><code class="xref mongodb mongodb-binary docutils literal"><span class="pre">mongod</span></code></a> specifies
<code class="docutils literal"><span class="pre">&quot;snappy,zlib&quot;</span></code>, messages between the client and the
<a class="reference internal" href="program/mongod.html#bin.mongod" title="bin.mongod"><code class="xref mongodb mongodb-binary docutils literal"><span class="pre">mongod</span></code></a> uses <code class="docutils literal"><span class="pre">zlib</span></code>.</p>
<div class="admonition important">
<p class="first admonition-title">Important</p>
<p>Messages are compressed when both parties enable network
compression. Otherwise, messages between the parties are
uncompressed.</p>
<p class="last">If the parties do not share at least one common compressor,
messages between the parties are uncompressed.</p>
</div>
<p class="last">Starting in MongoDB 4.0.5 (and MongoDB 3.6.10), the
<a class="reference internal" href="program/mongo.html#bin.mongo" title="bin.mongo"><code class="xref mongodb mongodb-binary docutils literal"><span class="pre">mongo</span></code></a> shell supports the uri connection string
option <a class="reference internal" href="#urioption.compressors" title="compressors"><code class="xref mongodb mongodb-urioption docutils literal"><span class="pre">compressors</span></code></a>.</p>
</td>
</tr>
<tr class="row-odd"><td><dl class="first last urioption">
<dt id="urioption.zlibCompressionLevel">
<code class="descname">zlibCompressionLevel</code><a class="headerlink" href="#urioption.zlibCompressionLevel" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>

</td>
<td><p class="first">An integer that specifies the compression level if using
<a class="reference internal" href="glossary.html#term-zlib"><span class="xref std std-term">zlib</span></a> for <a class="reference internal" href="#urioption.compressors" title="compressors"><code class="xref mongodb mongodb-urioption docutils literal"><span class="pre">network</span> <span class="pre">compression</span></code></a>.</p>
<p>You can specify an integer value ranging from <code class="docutils literal"><span class="pre">-1</span></code> to <code class="docutils literal"><span class="pre">9</span></code>:</p>
<table border="1" class="colwidths-given docutils">
<colgroup>
<col width="25%" />
<col width="75%" />
</colgroup>
<thead valign="bottom">
<tr class="row-odd"><th class="head">Value</th>
<th class="head">Notes</th>
</tr>
</thead>
<tbody valign="top">
<tr class="row-even"><td><code class="docutils literal"><span class="pre">-1</span></code></td>
<td>Default compression level, usually level <code class="docutils literal"><span class="pre">6</span></code> compression.</td>
</tr>
<tr class="row-odd"><td><code class="docutils literal"><span class="pre">0</span></code></td>
<td>No compression</td>
</tr>
<tr class="row-even"><td><code class="docutils literal"><span class="pre">1</span></code> - <code class="docutils literal"><span class="pre">9</span></code></td>
<td><p class="first">Increasing level of compression but at the cost of speed, with:</p>
<ul class="last simple">
<li><code class="docutils literal"><span class="pre">1</span></code> providing the best speed but least compression, and</li>
<li><code class="docutils literal"><span class="pre">9</span></code> providing the best compression but at the slowest speed.</li>
</ul>
</td>
</tr>
</tbody>
</table>
<p class="last">Not supported by the <a class="reference internal" href="program/mongo.html#bin.mongo" title="bin.mongo"><code class="xref mongodb mongodb-binary docutils literal"><span class="pre">mongo</span></code></a> shell.</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
<div class="section" id="connection-pool-options">
<span id="id2"></span><h3>Connection Pool Options<a class="headerlink" href="#connection-pool-options" title="Permalink to this headline">¶</a></h3>
<p>Most drivers implement some kind of connection pool handling.
Some drivers do not support connection
pools. See your <a class="reference external" href="https://docs.mongodb.com/ecosystem/drivers">driver</a> documentation
for more information on the connection pooling implementation. These
options allow applications to configure the connection pool when
connecting to the MongoDB deployment.</p>
<table border="1" class="colwidths-given docutils">
<colgroup>
<col width="30%" />
<col width="70%" />
</colgroup>
<thead valign="bottom">
<tr class="row-odd"><th class="head">Connection Option</th>
<th class="head">Description</th>
</tr>
</thead>
<tbody valign="top">
<tr class="row-even"><td><dl class="first last urioption">
<dt id="urioption.maxPoolSize">
<code class="descname">maxPoolSize</code><a class="headerlink" href="#urioption.maxPoolSize" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>

</td>
<td>The maximum number of connections in the connection pool. The
default value is <code class="docutils literal"><span class="pre">100</span></code>.</td>
</tr>
<tr class="row-odd"><td><dl class="first last urioption">
<dt id="urioption.minPoolSize">
<code class="descname">minPoolSize</code><a class="headerlink" href="#urioption.minPoolSize" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>

</td>
<td><p class="first">The minimum number of connections in the connection pool. The
default value is <code class="docutils literal"><span class="pre">0</span></code>.</p>
<div class="last admonition note">
<p class="first admonition-title">Note</p>
<p class="last">The <a class="reference internal" href="#urioption.minPoolSize" title="minPoolSize"><code class="xref mongodb mongodb-urioption docutils literal"><span class="pre">minPoolSize</span></code></a> option is not supported by all
drivers. For information on your driver, see the
<a class="reference external" href="https://docs.mongodb.com/ecosystem/drivers">drivers</a> documentation.</p>
</div>
</td>
</tr>
<tr class="row-even"><td><dl class="first last urioption">
<dt id="urioption.maxIdleTimeMS">
<code class="descname">maxIdleTimeMS</code><a class="headerlink" href="#urioption.maxIdleTimeMS" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>

</td>
<td><p class="first">The maximum number of milliseconds that a connection can remain
idle in the pool before being removed and closed.</p>
<p class="last">This option is not supported by all drivers.</p>
</td>
</tr>
<tr class="row-odd"><td><dl class="first last urioption">
<dt id="urioption.waitQueueMultiple">
<code class="descname">waitQueueMultiple</code><a class="headerlink" href="#urioption.waitQueueMultiple" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>

</td>
<td><p class="first">A number that the driver multiples the <a class="reference internal" href="#urioption.maxPoolSize" title="maxPoolSize"><code class="xref mongodb mongodb-urioption docutils literal"><span class="pre">maxPoolSize</span></code></a>
value to, to provide the maximum number of threads allowed to
wait for a connection to become available from the pool. For
default values, see the <a class="reference external" href="https://docs.mongodb.com/ecosystem/drivers">/drivers</a>
documentation.</p>
<p class="last">This option is not supported by all drivers.</p>
</td>
</tr>
<tr class="row-even"><td><dl class="first last urioption">
<dt id="urioption.waitQueueTimeoutMS">
<code class="descname">waitQueueTimeoutMS</code><a class="headerlink" href="#urioption.waitQueueTimeoutMS" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>

</td>
<td><p class="first">The maximum time in milliseconds that a thread can wait for a
connection to become available. For default values, see the
<a class="reference external" href="https://docs.mongodb.com/ecosystem/drivers">/drivers</a> documentation.</p>
<p class="last">This option is not supported by all drivers.</p>
</td>
</tr>
</tbody>
</table>
</div>
<div class="section" id="write-concern-options">
<span id="connections-write-concern"></span><h3>Write Concern Options<a class="headerlink" href="#write-concern-options" title="Permalink to this headline">¶</a></h3>
<p><a class="reference internal" href="write-concern.html#write-concern"><span class="std std-ref">Write concern</span></a> describes the level of
acknowledgment requested from MongoDB. The write concern option is
supported by the:</p>
<ul class="simple">
<li>MongoDB drivers</li>
<li><a class="reference internal" href="program/mongo.html#bin.mongo" title="bin.mongo"><code class="xref mongodb mongodb-binary docutils literal"><span class="pre">mongo</span></code></a> shell</li>
<li><a class="reference internal" href="program/mongofiles.html#bin.mongofiles" title="bin.mongofiles"><code class="xref mongodb mongodb-binary docutils literal"><span class="pre">mongofiles</span></code></a></li>
<li><a class="reference internal" href="program/mongoimport.html#bin.mongoimport" title="bin.mongoimport"><code class="xref mongodb mongodb-binary docutils literal"><span class="pre">mongoimport</span></code></a></li>
<li><a class="reference internal" href="program/mongorestore.html#bin.mongorestore" title="bin.mongorestore"><code class="xref mongodb mongodb-binary docutils literal"><span class="pre">mongorestore</span></code></a></li>
</ul>
<p>You can specify the write concern both in the connection string and
as a parameter to methods like <code class="docutils literal"><span class="pre">insert</span></code> or <code class="docutils literal"><span class="pre">update</span></code>. If the
write concern is specified in both places, the method parameter
overrides the connection-string setting.</p>
<p>The following connection string to a replica set specifies
<a class="reference internal" href="write-concern.html#writeconcern.&quot;majority&quot;" title="&quot;majority&quot;"><code class="xref mongodb mongodb-writeconcern docutils literal"><span class="pre">&quot;majority&quot;</span></code></a> write concern and a 5 second
timeout using the <a class="reference internal" href="#urioption.wtimeoutMS" title="wtimeoutMS"><code class="xref mongodb mongodb-urioption docutils literal"><span class="pre">wtimeoutMS</span></code></a> write concern parameter:</p>
<div class="button-code-block">
<div class="button-row">
<a class="code-button--copy code-button" role="button">
copy</a>
</div>
<div class="copyable-code-block highlight-none"><div class="highlight"><pre><span></span>mongodb://db0.example.com,db1.example.com,db2.example.com/?replicaSet=myRepl&amp;w=majority&amp;wtimeoutMS=5000
</pre></div>
</div>
</div>
<table border="1" class="colwidths-given docutils">
<colgroup>
<col width="30%" />
<col width="70%" />
</colgroup>
<thead valign="bottom">
<tr class="row-odd"><th class="head">Connection Option</th>
<th class="head">Description</th>
</tr>
</thead>
<tbody valign="top">
<tr class="row-even"><td><dl class="first last urioption">
<dt id="urioption.w">
<code class="descname">w</code><a class="headerlink" href="#urioption.w" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>

</td>
<td><p class="first">Corresponds to the write concern <a class="reference internal" href="write-concern.html#wc-w"><span class="std std-ref">w Option</span></a>. The <code class="docutils literal"><span class="pre">w</span></code> option
requests acknowledgement that the write operation has propagated
to a specified number of <a class="reference internal" href="program/mongod.html#bin.mongod" title="bin.mongod"><code class="xref mongodb mongodb-binary docutils literal"><span class="pre">mongod</span></code></a> instances or to
<a class="reference internal" href="program/mongod.html#bin.mongod" title="bin.mongod"><code class="xref mongodb mongodb-binary docutils literal"><span class="pre">mongod</span></code></a> instances with specified tags.</p>
<p>You can specify a <a class="reference internal" href="write-concern.html#writeconcern.&lt;number&gt;" title="&lt;number&gt;"><code class="xref mongodb mongodb-writeconcern docutils literal"><span class="pre">number</span></code></a>, the
string <a class="reference internal" href="write-concern.html#writeconcern.&quot;majority&quot;" title="&quot;majority&quot;"><code class="xref mongodb mongodb-writeconcern docutils literal"><span class="pre">majority</span></code></a>, or a
<code class="xref mongodb mongodb-writeconcern docutils literal"><span class="pre">tag</span> <span class="pre">set</span></code>.</p>
<p class="last">For details, see <a class="reference internal" href="write-concern.html#wc-w"><span class="std std-ref">w Option</span></a>.</p>
</td>
</tr>
<tr class="row-odd"><td><dl class="first last urioption">
<dt id="urioption.wtimeoutMS">
<code class="descname">wtimeoutMS</code><a class="headerlink" href="#urioption.wtimeoutMS" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>

</td>
<td><p class="first">Corresponds to the write concern <a class="reference internal" href="write-concern.html#wc-wtimeout"><span class="std std-ref">wtimeout</span></a>.
<a class="reference internal" href="#urioption.wtimeoutMS" title="wtimeoutMS"><code class="xref mongodb mongodb-urioption docutils literal"><span class="pre">wtimeoutMS</span></code></a> specifies a time limit, in milliseconds,
for the write concern.</p>
<p class="last">When <code class="docutils literal"><span class="pre">wtimeoutMS</span></code> is <code class="docutils literal"><span class="pre">0</span></code>, write operations will never time
out. For more information, see <a class="reference internal" href="write-concern.html#wc-wtimeout"><span class="std std-ref">wtimeout</span></a>.</p>
</td>
</tr>
<tr class="row-even"><td><dl class="first last urioption">
<dt id="urioption.journal">
<code class="descname">journal</code><a class="headerlink" href="#urioption.journal" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>

</td>
<td><p class="first">Corresponds to the write concern <a class="reference internal" href="write-concern.html#wc-j"><span class="std std-ref">j Option</span></a> option. The
<a class="reference internal" href="#urioption.journal" title="journal"><code class="xref mongodb mongodb-urioption docutils literal"><span class="pre">journal</span></code></a> option requests acknowledgement from
MongoDB that the write operation has been written to the
<a class="reference internal" href="../core/journaling.html"><span class="doc">journal</span></a>. For details, see <a class="reference internal" href="write-concern.html#wc-j"><span class="std std-ref">j Option</span></a>.</p>
<p>If you set <a class="reference internal" href="#urioption.journal" title="journal"><code class="xref mongodb mongodb-urioption docutils literal"><span class="pre">journal</span></code></a> to <code class="docutils literal"><span class="pre">true</span></code>, and specify a
<a class="reference internal" href="#urioption.w" title="w"><code class="xref mongodb mongodb-urioption docutils literal"><span class="pre">w</span></code></a> value less than 1, <a class="reference internal" href="#urioption.journal" title="journal"><code class="xref mongodb mongodb-urioption docutils literal"><span class="pre">journal</span></code></a> prevails.</p>
<p class="last">If you set <a class="reference internal" href="#urioption.journal" title="journal"><code class="xref mongodb mongodb-urioption docutils literal"><span class="pre">journal</span></code></a> to true, and the
<a class="reference internal" href="program/mongod.html#bin.mongod" title="bin.mongod"><code class="xref mongodb mongodb-binary docutils literal"><span class="pre">mongod</span></code></a> does not have journaling enabled, as with
<a class="reference internal" href="configuration-options.html#storage.journal.enabled" title="storage.journal.enabled"><code class="xref mongodb mongodb-setting docutils literal"><span class="pre">storage.journal.enabled</span></code></a>, then MongoDB will error.</p>
</td>
</tr>
</tbody>
</table>
<p>For more information, see <a class="reference internal" href="write-concern.html"><span class="doc">Write Concern</span></a>.</p>
</div>
<div class="section" id="readconcern-options">
<h3><code class="docutils literal"><span class="pre">readConcern</span></code> Options<a class="headerlink" href="#readconcern-options" title="Permalink to this headline">¶</a></h3>
<div class="versionadded">
<p><span class="versionmodified">New in version 3.2: </span>For the WiredTiger storage engine, MongoDB 3.2 introduces the
readConcern option for replica sets and replica set shards.</p>
</div>
<p><a class="reference internal" href="read-concern.html"><span class="doc">Read Concern</span></a> allows clients to choose a level of
isolation for their reads from replica sets.</p>
<p>The following connection string to a replica set specifies
<a class="reference internal" href="#urioption.readConcernLevel" title="readConcernLevel"><code class="xref mongodb mongodb-urioption docutils literal"><span class="pre">readConcernLevel=majority</span></code></a>:</p>
<div class="button-code-block">
<div class="button-row">
<a class="code-button--copy code-button" role="button">
copy</a>
</div>
<div class="copyable-code-block highlight-none"><div class="highlight"><pre><span></span>mongodb://db0.example.com,db1.example.com,db2.example.com/?replicaSet=myRepl&amp;readConcernLevel=majority
</pre></div>
</div>
</div>
<table border="1" class="colwidths-given docutils">
<colgroup>
<col width="30%" />
<col width="70%" />
</colgroup>
<thead valign="bottom">
<tr class="row-odd"><th class="head">Connection Option</th>
<th class="head">Description</th>
</tr>
</thead>
<tbody valign="top">
<tr class="row-even"><td><dl class="first last urioption">
<dt id="urioption.readConcernLevel">
<code class="descname">readConcernLevel</code><a class="headerlink" href="#urioption.readConcernLevel" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>

</td>
<td><p class="first">The level of isolation. Can accept one of the following values:</p>
<ul class="simple">
<li><a class="reference internal" href="read-concern-local.html#readconcern.&quot;local&quot;" title="&quot;local&quot;"><code class="xref mongodb mongodb-readconcern docutils literal"><span class="pre">local</span></code></a></li>
<li><a class="reference internal" href="read-concern-majority.html#readconcern.&quot;majority&quot;" title="&quot;majority&quot;"><code class="xref mongodb mongodb-readconcern docutils literal"><span class="pre">majority</span></code></a></li>
<li><a class="reference internal" href="read-concern-linearizable.html#readconcern.&quot;linearizable&quot;" title="&quot;linearizable&quot;"><code class="xref mongodb mongodb-readconcern docutils literal"><span class="pre">linearizable</span></code></a></li>
<li><a class="reference internal" href="read-concern-available.html#readconcern.&quot;available&quot;" title="&quot;available&quot;"><code class="xref mongodb mongodb-readconcern docutils literal"><span class="pre">available</span></code></a></li>
</ul>
<p class="last">This connection string option is not available for the
<a class="reference internal" href="program/mongo.html#bin.mongo" title="bin.mongo"><code class="xref mongodb mongodb-binary docutils literal"><span class="pre">mongo</span></code></a> shell. Specify the read concern as an
<a class="reference internal" href="read-concern.html#read-concern-operations"><span class="std std-ref">option to the specific operation</span></a>.</p>
</td>
</tr>
</tbody>
</table>
<p>For more information, see <a class="reference internal" href="read-concern.html"><span class="doc">Read Concern</span></a>.</p>
</div>
<div class="section" id="read-preference-options">
<span id="connections-read-preference"></span><h3>Read Preference Options<a class="headerlink" href="#read-preference-options" title="Permalink to this headline">¶</a></h3>
<p><a class="reference internal" href="../core/read-preference.html"><span class="doc">Read preferences</span></a> describe the
behavior of read operations with regards to <a class="reference internal" href="glossary.html#term-replica-set"><span class="xref std std-term">replica sets</span></a>. These parameters allow you to specify read preferences
on a per-connection basis in the connection string.</p>
<p>For example:</p>
<ul>
<li><p class="first">The following connection string to a replica set specifies
<a class="reference internal" href="../core/read-preference.html#secondary" title="secondary"><code class="xref mongodb mongodb-readmode docutils literal"><span class="pre">secondary</span></code></a> read preference mode and a
<a class="reference internal" href="#urioption.maxStalenessSeconds" title="maxStalenessSeconds"><code class="xref mongodb mongodb-urioption docutils literal"><span class="pre">maxStalenessSeconds</span></code></a> value of 120 seconds:</p>
<div class="button-code-block">
<div class="button-row">
<a class="code-button--copy code-button" role="button">
copy</a>
</div>
<div class="copyable-code-block highlight-none"><div class="highlight"><pre><span></span>mongodb://db0.example.com,db1.example.com,db2.example.com/?replicaSet=myRepl&amp;readPreference=secondary&amp;maxStalenessSeconds=120
</pre></div>
</div>
</div>
</li>
<li><p class="first">The following connection string to a sharded cluster specifies
<a class="reference internal" href="../core/read-preference.html#secondary" title="secondary"><code class="xref mongodb mongodb-readmode docutils literal"><span class="pre">secondary</span></code></a> read preference mode and a
<a class="reference internal" href="#urioption.maxStalenessSeconds" title="maxStalenessSeconds"><code class="xref mongodb mongodb-urioption docutils literal"><span class="pre">maxStalenessSeconds</span></code></a> value of 120 seconds:</p>
<div class="button-code-block">
<div class="button-row">
<a class="code-button--copy code-button" role="button">
copy</a>
</div>
<div class="copyable-code-block highlight-none"><div class="highlight"><pre><span></span>mongodb://mongos1.example.com,mongos2.example.com/?readPreference=secondary&amp;maxStalenessSeconds=120
</pre></div>
</div>
</div>
</li>
<li><p class="first">The following connection string to a sharded cluster specifies
<a class="reference internal" href="../core/read-preference.html#secondary" title="secondary"><code class="xref mongodb mongodb-readmode docutils literal"><span class="pre">secondary</span></code></a> read preference mode as well as three
<a class="reference internal" href="#urioption.readPreferenceTags" title="readPreferenceTags"><code class="xref mongodb mongodb-urioption docutils literal"><span class="pre">readPreferenceTags</span></code></a>:</p>
<div class="button-code-block">
<div class="button-row">
<a class="code-button--copy code-button" role="button">
copy</a>
</div>
<div class="copyable-code-block highlight-none"><div class="highlight"><pre><span></span>mongodb://mongos1.example.com,mongos2.example.com/?readPreference=secondary&amp;readPreferenceTags=dc:ny,rack:r1&amp;readPreferenceTags=dc:ny&amp;readPreferenceTags=
</pre></div>
</div>
</div>
</li>
</ul>
<p>Order matters when using multiple <code class="docutils literal"><span class="pre">readPreferenceTags</span></code>. The
<code class="docutils literal"><span class="pre">readPreferenceTags</span></code> are tried in order until a match is found. Once
found, that specification is used to find all eligible matching
members and any remaining <code class="docutils literal"><span class="pre">readPreferenceTags</span></code>  are ignored.
For details, see <a class="reference internal" href="../core/read-preference-tags.html#read-preference-tag-order-matching"><span class="std std-ref">Order of Tag Matching</span></a>.</p>
<table border="1" class="colwidths-given docutils">
<colgroup>
<col width="30%" />
<col width="70%" />
</colgroup>
<thead valign="bottom">
<tr class="row-odd"><th class="head">Connection Option</th>
<th class="head">Description</th>
</tr>
</thead>
<tbody valign="top">
<tr class="row-even"><td><dl class="first last urioption">
<dt id="urioption.readPreference">
<code class="descname">readPreference</code><a class="headerlink" href="#urioption.readPreference" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>

</td>
<td><p class="first">Specifies the <a class="reference internal" href="../core/read-preference.html"><span class="doc">read preferences</span></a>
for this connection. Possible values are:</p>
<ul class="simple">
<li><a class="reference internal" href="../core/read-preference.html#primary" title="primary"><code class="xref mongodb mongodb-readmode docutils literal"><span class="pre">primary</span></code></a> (<em>Default</em>)</li>
<li><a class="reference internal" href="../core/read-preference.html#primaryPreferred" title="primaryPreferred"><code class="xref mongodb mongodb-readmode docutils literal"><span class="pre">primaryPreferred</span></code></a></li>
<li><a class="reference internal" href="../core/read-preference.html#secondary" title="secondary"><code class="xref mongodb mongodb-readmode docutils literal"><span class="pre">secondary</span></code></a></li>
<li><a class="reference internal" href="../core/read-preference.html#secondaryPreferred" title="secondaryPreferred"><code class="xref mongodb mongodb-readmode docutils literal"><span class="pre">secondaryPreferred</span></code></a></li>
<li><a class="reference internal" href="../core/read-preference.html#nearest" title="nearest"><code class="xref mongodb mongodb-readmode docutils literal"><span class="pre">nearest</span></code></a></li>
</ul>
<p><a class="reference internal" href="../core/transactions.html"><span class="doc">Multi-document transactions</span></a> that contain
read operations must use read preference <a class="reference internal" href="../core/read-preference.html#primary" title="primary"><code class="xref mongodb mongodb-readmode docutils literal"><span class="pre">primary</span></code></a>. All
operations in a given transaction must route to the same member.</p>
<p class="last">This connection string option is not available for the
<code class="xref mongodb mongodb-binary docutils literal"><span class="pre">mongo</span></code> shell. See <a class="reference internal" href="method/cursor.readPref.html#cursor.readPref" title="cursor.readPref()"><code class="xref mongodb mongodb-method docutils literal"><span class="pre">cursor.readPref()</span></code></a> and
<a class="reference internal" href="method/Mongo.setReadPref.html#Mongo.setReadPref" title="Mongo.setReadPref()"><code class="xref mongodb mongodb-method docutils literal"><span class="pre">Mongo.setReadPref()</span></code></a> instead.</p>
</td>
</tr>
<tr class="row-odd"><td><dl class="first last urioption">
<dt id="urioption.maxStalenessSeconds">
<code class="descname">maxStalenessSeconds</code><a class="headerlink" href="#urioption.maxStalenessSeconds" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>

</td>
<td><p class="first">Specifies, in seconds, how stale a secondary can be before the client
stops using it for read operations. For details, see
<a class="reference internal" href="../core/read-preference-staleness.html#replica-set-read-preference-max-staleness"><span class="std std-ref">Read Preference maxStalenessSeconds</span></a>.</p>
<p>By default, there is no maximum staleness and clients will not consider a
secondary’s lag when choosing where to direct a read operation.</p>
<p>The minimum <a class="reference internal" href="#urioption.maxStalenessSeconds" title="maxStalenessSeconds"><code class="xref mongodb mongodb-urioption docutils literal"><span class="pre">maxStalenessSeconds</span></code></a> value is 90
seconds. Specifying a value between 0 and 90 seconds will produce
an error. MongoDB drivers treat a <code class="docutils literal"><span class="pre">maxStalenessSeconds</span></code> value
of <code class="docutils literal"><span class="pre">-1</span></code> as “no max staleness”, the same as if
<code class="docutils literal"><span class="pre">maxStalenessSeconds</span></code> is omitted.</p>
<div class="admonition important">
<p class="first admonition-title">Important</p>
<p class="last">To use <code class="docutils literal"><span class="pre">maxStalenessSeconds</span></code>, all of the
MongoDB instances in your deployment must be using MongoDB 3.4 or
later. If any instances are on an earlier version of MongoDB, the
driver or <a class="reference internal" href="program/mongod.html#bin.mongod" title="bin.mongod"><code class="xref mongodb mongodb-binary docutils literal"><span class="pre">mongod</span></code></a>/<a class="reference internal" href="program/mongos.html#bin.mongos" title="bin.mongos"><code class="xref mongodb mongodb-binary docutils literal"><span class="pre">mongos</span></code></a> will raise an error.</p>
</div>
<div class="last versionadded">
<p><span class="versionmodified">New in version 3.4.</span></p>
</div>
</td>
</tr>
<tr class="row-even"><td><dl class="first last urioption">
<dt id="urioption.readPreferenceTags">
<code class="descname">readPreferenceTags</code><a class="headerlink" href="#urioption.readPreferenceTags" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>

</td>
<td><p class="first">Specifies the <a class="reference internal" href="../core/read-preference-tags.html#replica-set-read-preference-tag-sets"><span class="std std-ref">tags document</span></a> as a comma-separated
list of colon-separated key-value pairs. For example,</p>
<ul class="simple">
<li>To specify the tags document <code class="docutils literal"><span class="pre">{</span> <span class="pre">&quot;dc&quot;:</span> <span class="pre">&quot;ny&quot;,</span> <span class="pre">&quot;rack&quot;:</span> <span class="pre">&quot;r1&quot;</span> <span class="pre">}</span></code>,
use <code class="docutils literal"><span class="pre">readPreferenceTags=dc:ny,rack:r1</span></code> in the connection
string.</li>
<li>To specify an empty tags document <code class="docutils literal"><span class="pre">{</span> <span class="pre">}</span></code>, use
<code class="docutils literal"><span class="pre">readPreferenceTags=</span></code> without setting the value.</li>
</ul>
<p>To specify a <em>list</em> of tag documents, use multiple
<code class="docutils literal"><span class="pre">readPreferenceTags</span></code>. For example,
<code class="docutils literal"><span class="pre">readPreferenceTags=dc:ny,rack:r1&amp;readPreferenceTags=</span></code>.</p>
<p>Order matters when using multiple <code class="docutils literal"><span class="pre">readPreferenceTags</span></code>. The
<code class="docutils literal"><span class="pre">readPreferenceTags</span></code> are tried in order until a match is
found. For details, see
<a class="reference internal" href="../core/read-preference-tags.html#read-preference-tag-order-matching"><span class="std std-ref">Order of Tag Matching</span></a>.</p>
<p class="last">This connection string option is not available for the
<code class="xref mongodb mongodb-binary docutils literal"><span class="pre">mongo</span></code> shell. See <a class="reference internal" href="method/cursor.readPref.html#cursor.readPref" title="cursor.readPref()"><code class="xref mongodb mongodb-method docutils literal"><span class="pre">cursor.readPref()</span></code></a> and
<a class="reference internal" href="method/Mongo.setReadPref.html#Mongo.setReadPref" title="Mongo.setReadPref()"><code class="xref mongodb mongodb-method docutils literal"><span class="pre">Mongo.setReadPref()</span></code></a> instead.</p>
</td>
</tr>
</tbody>
</table>
<p>For more information, see <a class="reference internal" href="../core/read-preference.html"><span class="doc">Read preferences</span></a>.</p>
</div>
<div class="section" id="authentication-options">
<h3>Authentication Options<a class="headerlink" href="#authentication-options" title="Permalink to this headline">¶</a></h3>
<p>The following connection string to a replica set specifies the
<a class="reference internal" href="#urioption.authSource" title="authSource"><code class="xref mongodb mongodb-urioption docutils literal"><span class="pre">authSource</span></code></a> to the <code class="docutils literal"><span class="pre">admin</span></code> database. That is the user
credentials are authenticated to the <code class="docutils literal"><span class="pre">admin</span></code> database.</p>
<div class="button-code-block">
<div class="button-row">
<a class="code-button--copy code-button" role="button">
copy</a>
</div>
<div class="copyable-code-block highlight-sh"><div class="highlight"><pre><span></span>mongodb://myDBReader:D1fficultP%40ssw0rd@mongodb0.example.com:27017,mongodb1.example.com:27017,mongodb2.example.com:27017/?replicaSet<span class="o">=</span>myRepl<span class="p">&amp;</span><span class="nv">authSource</span><span class="o">=</span>admin
</pre></div>
</div>
</div>
<p>If the username or password includes the at sign <code class="docutils literal"><span class="pre">&#64;</span></code>, colon <code class="docutils literal"><span class="pre">:</span></code>,
slash <code class="docutils literal"><span class="pre">/</span></code>, or the percent sign <code class="docutils literal"><span class="pre">%</span></code> characters, use <a class="reference external" href="https://tools.ietf.org/html/rfc3986#section-2.1">percent
encoding</a>.</p>
<table border="1" class="colwidths-given docutils">
<colgroup>
<col width="30%" />
<col width="70%" />
</colgroup>
<thead valign="bottom">
<tr class="row-odd"><th class="head">Connection Option</th>
<th class="head">Description</th>
</tr>
</thead>
<tbody valign="top">
<tr class="row-even"><td><dl class="first last urioption">
<dt id="urioption.authSource">
<code class="descname">authSource</code><a class="headerlink" href="#urioption.authSource" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>

</td>
<td><p class="first">Specify the database name associated with the user’s
credentials. If <a class="reference internal" href="#urioption.authSource" title="authSource"><code class="xref mongodb mongodb-urioption docutils literal"><span class="pre">authSource</span></code></a> is unspecified,
<a class="reference internal" href="#urioption.authSource" title="authSource"><code class="xref mongodb mongodb-urioption docutils literal"><span class="pre">authSource</span></code></a> defaults to the <code class="docutils literal"><span class="pre">defaultauthdb</span></code>
specified in the connection string. If <code class="docutils literal"><span class="pre">defaultauthdb</span></code> is
unspecified, then <a class="reference internal" href="#urioption.authSource" title="authSource"><code class="xref mongodb mongodb-urioption docutils literal"><span class="pre">authSource</span></code></a> defaults to <code class="docutils literal"><span class="pre">admin</span></code>.</p>
<p>For authentication mechanisms that delegate credential storage
to other services, the <a class="reference internal" href="#urioption.authSource" title="authSource"><code class="xref mongodb mongodb-urioption docutils literal"><span class="pre">authSource</span></code></a> value should be
<code class="docutils literal"><span class="pre">$external</span></code> as with the <code class="docutils literal"><span class="pre">PLAIN</span></code> (LDAP) and <code class="docutils literal"><span class="pre">GSSAPI</span></code>
(Kerberos) authentication mechanisms.</p>
<p class="last">MongoDB will ignore <a class="reference internal" href="#urioption.authSource" title="authSource"><code class="xref mongodb mongodb-urioption docutils literal"><span class="pre">authSource</span></code></a> values if the
connection string specifies no username.</p>
</td>
</tr>
<tr class="row-odd"><td><dl class="first last urioption">
<dt id="urioption.authMechanism">
<code class="descname">authMechanism</code><a class="headerlink" href="#urioption.authMechanism" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>

</td>
<td><p class="first">Specify the authentication mechanism that MongoDB will use to
authenticate the connection. Possible values include:</p>
<ul class="simple">
<li><a class="reference internal" href="../core/security-scram.html#authentication-scram-sha-1"><span class="std std-ref">SCRAM-SHA-1</span></a></li>
<li><a class="reference internal" href="../core/security-scram.html#authentication-scram-sha-256"><span class="std std-ref">SCRAM-SHA-256</span></a> (<em>Added in MongoDB 4.0</em>)</li>
<li><code class="docutils literal"><span class="pre">MONGODB-CR</span></code> (<em>Removed in MongoDB 4.0</em>)</li>
<li><a class="reference internal" href="../core/security-x.509.html#security-auth-x509"><span class="std std-ref">MONGODB-X509</span></a></li>
<li><a class="reference internal" href="../core/authentication-mechanisms-enterprise.html#security-auth-kerberos"><span class="std std-ref">GSSAPI</span></a> (Kerberos)</li>
<li><a class="reference internal" href="../core/authentication-mechanisms-enterprise.html#security-auth-ldap"><span class="std std-ref">PLAIN</span></a> (LDAP SASL)</li>
</ul>
<p>MongoDB 4.0 removes support for the <code class="docutils literal"><span class="pre">MONGODB-CR</span></code>
authentication mechanism. You cannot specify <code class="docutils literal"><span class="pre">MONGODB-CR</span></code> as
the authentication mechanism when connecting to MongoDB 4.0+
deployments.</p>
<p>Only MongoDB Enterprise <a class="reference internal" href="program/mongod.html#bin.mongod" title="bin.mongod"><code class="xref mongodb mongodb-binary docutils literal"><span class="pre">mongod</span></code></a> and <a class="reference internal" href="program/mongos.html#bin.mongos" title="bin.mongos"><code class="xref mongodb mongodb-binary docutils literal"><span class="pre">mongos</span></code></a>
instances provide <code class="docutils literal"><span class="pre">GSSAPI</span></code> (Kerberos) and <code class="docutils literal"><span class="pre">PLAIN</span></code> (LDAP)
mechanisms. To use <code class="docutils literal"><span class="pre">MONGODB-X509</span></code>, you must have TLS/SSL
Enabled.</p>
<p class="last">See <a class="reference internal" href="../core/authentication.html"><span class="doc">Authentication</span></a> for more information about the
authentication system in MongoDB. Also consider
<a class="reference internal" href="../tutorial/configure-x509-client-authentication.html"><span class="doc">Use x.509 Certificates to Authenticate Clients</span></a> for more
information on x509 authentication.</p>
</td>
</tr>
<tr class="row-even"><td><dl class="first last urioption">
<dt id="urioption.authMechanismProperties">
<code class="descname">authMechanismProperties</code><a class="headerlink" href="#urioption.authMechanismProperties" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>

</td>
<td><p class="first">Specify properties for the specified <a class="reference internal" href="#urioption.authMechanism" title="authMechanism"><code class="xref mongodb mongodb-urioption docutils literal"><span class="pre">authMechanism</span></code></a>
as a comma-separated list of colon-separated key-value pairs.</p>
<p>Possible key-value pairs are:</p>
<dl class="docutils">
<dt><code class="docutils literal"><span class="pre">SERVICE_NAME:&lt;string&gt;</span></code></dt>
<dd><p class="first">Set the Kerberos service name when connecting to Kerberized
MongoDB instances. This value must match the service name set
on MongoDB instances to which you are connecting.</p>
<p class="last"><code class="docutils literal"><span class="pre">SERVICE_NAME</span></code> defaults to <code class="docutils literal"><span class="pre">mongodb</span></code> for all clients and
MongoDB instances. If you change the
<a class="reference internal" href="parameters.html#param.saslServiceName" title="saslServiceName"><code class="xref mongodb mongodb-parameter docutils literal"><span class="pre">saslServiceName</span></code></a> setting on a MongoDB instance, you
must set <code class="docutils literal"><span class="pre">SERVICE_NAME</span></code> to match that setting.</p>
</dd>
<dt><code class="docutils literal"><span class="pre">CANONICALIZE_HOST_NAME:true|false</span></code></dt>
<dd>Canonicalize the hostname of the client host machine when
connecting to the Kerberos server. This may be required when
hosts report different hostnames than what is in the Kerberos
database. Defaults to <code class="docutils literal"><span class="pre">false</span></code>.</dd>
<dt><code class="docutils literal"><span class="pre">SERVICE_REALM:&lt;string&gt;</span></code></dt>
<dd>Set the Kerberos realm for the MongoDB service. This may be
necessary to support cross-realm authentication where the user
exists in one realm and the service in another.</dd>
</dl>
<div class="last admonition note">
<p class="first admonition-title">Note</p>
<p class="last">The <a class="reference internal" href="#urioption.authMechanismProperties" title="authMechanismProperties"><code class="xref mongodb mongodb-urioption docutils literal"><span class="pre">authMechanismProperties</span></code></a> option is only
supported when <a class="reference internal" href="#urioption.authMechanism" title="authMechanism"><code class="xref mongodb mongodb-urioption docutils literal"><span class="pre">authMechanism</span></code></a> is <a class="reference internal" href="../core/authentication-mechanisms-enterprise.html#security-auth-kerberos"><span class="std std-ref">GSSAPI</span></a>.</p>
</div>
</td>
</tr>
<tr class="row-odd"><td><dl class="first last urioption">
<dt id="urioption.gssapiServiceName">
<code class="descname">gssapiServiceName</code><a class="headerlink" href="#urioption.gssapiServiceName" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>

</td>
<td><p class="first">Set the Kerberos service name when connecting to Kerberized
MongoDB instances. This value must match the service name set on
MongoDB instances to which you are connecting.</p>
<p><a class="reference internal" href="#urioption.gssapiServiceName" title="gssapiServiceName"><code class="xref mongodb mongodb-urioption docutils literal"><span class="pre">gssapiServiceName</span></code></a> defaults to <code class="docutils literal"><span class="pre">mongodb</span></code> for all
clients and MongoDB instances. If you change
<a class="reference internal" href="parameters.html#param.saslServiceName" title="saslServiceName"><code class="xref mongodb mongodb-parameter docutils literal"><span class="pre">saslServiceName</span></code></a> setting on a MongoDB instance, you
must set <a class="reference internal" href="#urioption.gssapiServiceName" title="gssapiServiceName"><code class="xref mongodb mongodb-urioption docutils literal"><span class="pre">gssapiServiceName</span></code></a> to match that setting.</p>
<p class="last"><a class="reference internal" href="#urioption.gssapiServiceName" title="gssapiServiceName"><code class="xref mongodb mongodb-urioption docutils literal"><span class="pre">gssapiServiceName</span></code></a> is a deprecated aliases for
<a class="reference internal" href="#urioption.authMechanismProperties" title="authMechanismProperties"><code class="xref mongodb mongodb-urioption docutils literal"><span class="pre">authMechanismProperties=SERVICE_NAME:mongodb</span></code></a>. For more information on which
options your driver supports and their relative priority to each
other, reference the documentation for your preferred driver
version.</p>
</td>
</tr>
</tbody>
</table>
</div>
<div class="section" id="server-selection-and-discovery-options">
<span id="selection-discovery-options"></span><h3>Server Selection and Discovery Options<a class="headerlink" href="#server-selection-and-discovery-options" title="Permalink to this headline">¶</a></h3>
<p>MongoDB provides the following options to configure how MongoDB drivers
and <a class="reference internal" href="program/mongos.html#bin.mongos" title="bin.mongos"><code class="xref mongodb mongodb-binary docutils literal"><span class="pre">mongos</span></code></a> instances select a server to which to direct read
or write operations.</p>
<table border="1" class="colwidths-given docutils">
<colgroup>
<col width="30%" />
<col width="70%" />
</colgroup>
<thead valign="bottom">
<tr class="row-odd"><th class="head">Connection Option</th>
<th class="head">Description</th>
</tr>
</thead>
<tbody valign="top">
<tr class="row-even"><td><dl class="first last urioption">
<dt id="urioption.localThresholdMS">
<code class="descname">localThresholdMS</code><a class="headerlink" href="#urioption.localThresholdMS" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>

</td>
<td><p class="first">The size (in milliseconds) of the latency window for selecting
among multiple suitable MongoDB instances. <em>Default</em>: 15
milliseconds.</p>
<p class="last">All drivers use <a class="reference internal" href="#urioption.localThresholdMS" title="localThresholdMS"><code class="xref mongodb mongodb-urioption docutils literal"><span class="pre">localThresholdMS</span></code></a>. Use the
<code class="docutils literal"><span class="pre">localThreshold</span></code> alias when specifying the latency window size
to <a class="reference internal" href="program/mongos.html#bin.mongos" title="bin.mongos"><code class="xref mongodb mongodb-binary docutils literal"><span class="pre">mongos</span></code></a>.</p>
</td>
</tr>
<tr class="row-odd"><td><dl class="first last urioption">
<dt id="urioption.serverSelectionTimeoutMS">
<code class="descname">serverSelectionTimeoutMS</code><a class="headerlink" href="#urioption.serverSelectionTimeoutMS" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>

</td>
<td>Specifies how long (in milliseconds) to block for server
selection before throwing an exception. <em>Default</em>: 30,000
milliseconds.</td>
</tr>
<tr class="row-even"><td><dl class="first last urioption">
<dt id="urioption.serverSelectionTryOnce">
<code class="descname">serverSelectionTryOnce</code><a class="headerlink" href="#urioption.serverSelectionTryOnce" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>

</td>
<td><p class="first"><strong>Single-threaded drivers only</strong>. When <code class="docutils literal"><span class="pre">true</span></code>, instructs the
driver to scan the MongoDB deployment exactly once after server
selection fails and then either select a server or raise an
error. When <code class="docutils literal"><span class="pre">false</span></code>, the driver blocks and searches for a
server up to the <a class="reference internal" href="#urioption.serverSelectionTimeoutMS" title="serverSelectionTimeoutMS"><code class="xref mongodb mongodb-urioption docutils literal"><span class="pre">serverSelectionTimeoutMS</span></code></a> value.
<em>Default</em>: <code class="docutils literal"><span class="pre">true</span></code>.</p>
<p class="last">Multi-threaded drivers and <a class="reference internal" href="program/mongos.html#bin.mongos" title="bin.mongos"><code class="xref mongodb mongodb-binary docutils literal"><span class="pre">mongos</span></code></a> do not support
<a class="reference internal" href="#urioption.serverSelectionTryOnce" title="serverSelectionTryOnce"><code class="xref mongodb mongodb-urioption docutils literal"><span class="pre">serverSelectionTryOnce</span></code></a>.</p>
</td>
</tr>
<tr class="row-odd"><td><dl class="first last urioption">
<dt id="urioption.heartbeatFrequencyMS">
<code class="descname">heartbeatFrequencyMS</code><a class="headerlink" href="#urioption.heartbeatFrequencyMS" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>

</td>
<td><p class="first"><a class="reference internal" href="#urioption.heartbeatFrequencyMS" title="heartbeatFrequencyMS"><code class="xref mongodb mongodb-urioption docutils literal"><span class="pre">heartbeatFrequencyMS</span></code></a> controls when the driver
checks the state of the MongoDB deployment. Specify the interval
(in milliseconds) between checks, counted from the end of the
previous check until the beginning of the next one.</p>
<p><em>Default</em>:</p>
<ul class="simple">
<li>Single-threaded drivers: 60 seconds.</li>
<li>Multi-threaded drivers: 10 seconds.</li>
</ul>
<p class="last"><a class="reference internal" href="program/mongos.html#bin.mongos" title="bin.mongos"><code class="xref mongodb mongodb-binary docutils literal"><span class="pre">mongos</span></code></a> does not support changing the frequency of
the heartbeat checks.</p>
</td>
</tr>
</tbody>
</table>
</div>
<div class="section" id="miscellaneous-configuration">
<h3>Miscellaneous Configuration<a class="headerlink" href="#miscellaneous-configuration" title="Permalink to this headline">¶</a></h3>
<table border="1" class="colwidths-given docutils">
<colgroup>
<col width="30%" />
<col width="70%" />
</colgroup>
<thead valign="bottom">
<tr class="row-odd"><th class="head">Connection Option</th>
<th class="head">Description</th>
</tr>
</thead>
<tbody valign="top">
<tr class="row-even"><td><dl class="first last urioption">
<dt id="urioption.appName">
<code class="descname">appName</code><a class="headerlink" href="#urioption.appName" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>

</td>
<td><p class="first">Specify a custom app name. The app name appears in</p>
<ul class="simple">
<li><a class="reference internal" href="program/mongod.html#bin.mongod" title="bin.mongod"><code class="xref mongodb mongodb-binary docutils literal"><span class="pre">mongod</span></code></a> and <a class="reference internal" href="program/mongos.html#bin.mongos" title="bin.mongos"><code class="xref mongodb mongodb-binary docutils literal"><span class="pre">mongos</span></code></a> <a class="reference internal" href="log-messages.html"><span class="doc">logs</span></a>,</li>
<li>the <a class="reference internal" href="command/currentOp.html#currentOp.appName" title="currentOp.appName"><code class="xref mongodb mongodb-data docutils literal"><span class="pre">currentOp.appName</span></code></a> field in the <a class="reference internal" href="command/currentOp.html#dbcmd.currentOp" title="currentOp"><code class="xref mongodb mongodb-dbcommand docutils literal"><span class="pre">currentOp</span></code></a>
command and <a class="reference internal" href="method/db.currentOp.html#db.currentOp" title="db.currentOp()"><code class="xref mongodb mongodb-method docutils literal"><span class="pre">db.currentOp()</span></code></a> method output,</li>
<li>the <a class="reference internal" href="database-profiler.html#system.profile.appName" title="system.profile.appName"><code class="xref mongodb mongodb-data docutils literal"><span class="pre">system.profile.appName</span></code></a> field in the <a class="reference internal" href="database-profiler.html"><span class="doc">database
profiler</span></a> output.</li>
</ul>
<p>If you do not specify a custom app name, the <a class="reference internal" href="program/mongo.html#bin.mongo" title="bin.mongo"><code class="xref mongodb mongodb-binary docutils literal"><span class="pre">mongo</span></code></a>
shell uses the default “<code class="docutils literal"><span class="pre">MongoDB</span> <span class="pre">Shell</span></code>”.</p>
<div class="last versionadded">
<p><span class="versionmodified">New in version 4.0.</span></p>
</div>
</td>
</tr>
<tr class="row-odd"><td><dl class="first last urioption">
<dt id="urioption.retryWrites">
<code class="descname">retryWrites</code><a class="headerlink" href="#urioption.retryWrites" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>

</td>
<td><p class="first">Enable <a class="reference internal" href="../core/retryable-writes.html#retryable-writes"><span class="std std-ref">retryable writes</span></a>.</p>
<p>Possible values are:</p>
<ul>
<li><p class="first"><code class="docutils literal"><span class="pre">true</span></code>. Enables retryable writes for the connection.</p>
<p>Official MongoDB 4.2-compatible drivers default to <code class="docutils literal"><span class="pre">true</span></code>.</p>
</li>
<li><p class="first"><code class="docutils literal"><span class="pre">false</span></code>. Disables retryable writes for the connection.</p>
<p>Official MongoDB 4.0 and 3.6-compatible drivers default to <code class="docutils literal"><span class="pre">false</span></code>.</p>
</li>
</ul>
<p>MongoDB drivers retry
<a class="reference internal" href="../core/transactions-in-applications.html#transactions-retry"><span class="std std-ref">transaction commit and abort operations</span></a>
regardless of the value of <a class="reference internal" href="#urioption.retryWrites" title="retryWrites"><code class="xref mongodb mongodb-urioption docutils literal"><span class="pre">retryWrites</span></code></a>. For more
information on transaction retryability, see
<a class="reference internal" href="../core/transactions-in-applications.html#transactions-retry"><span class="std std-ref">Transaction Error Handling</span></a>.</p>
<div class="last versionadded">
<p><span class="versionmodified">New in version 3.6.</span></p>
</div>
</td>
</tr>
<tr class="row-even"><td><dl class="first last urioption">
<dt id="urioption.uuidRepresentation">
<code class="descname">uuidRepresentation</code><a class="headerlink" href="#urioption.uuidRepresentation" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>

</td>
<td><p class="first">Possible values are:</p>
<dl class="docutils">
<dt><code class="docutils literal"><span class="pre">standard</span></code></dt>
<dd>The standard binary representation.</dd>
<dt><code class="docutils literal"><span class="pre">csharpLegacy</span></code></dt>
<dd>The default representation for the C# driver.</dd>
<dt><code class="docutils literal"><span class="pre">javaLegacy</span></code></dt>
<dd>The default representation for the Java driver.</dd>
<dt><code class="docutils literal"><span class="pre">pythonLegacy</span></code></dt>
<dd>The default representation for the Python driver.</dd>
</dl>
<p>For the default, see the <a class="reference external" href="https://docs.mongodb.com/ecosystem/drivers">drivers</a>
documentation for your driver.</p>
<div class="last admonition note">
<p class="first admonition-title">Note</p>
<p class="last">Not all drivers support the <a class="reference internal" href="#urioption.uuidRepresentation" title="uuidRepresentation"><code class="xref mongodb mongodb-urioption docutils literal"><span class="pre">uuidRepresentation</span></code></a>
option. For information on your driver, see the <a class="reference external" href="https://docs.mongodb.com/ecosystem/drivers">drivers</a> documentation.</p>
</div>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section" id="connections-connection-examples">
<span id="id3"></span><h2>Examples<a class="headerlink" href="#connections-connection-examples" title="Permalink to this headline">¶</a></h2>
<p>The following provide example URI strings for common connection targets.</p>
<div class="section" id="database-server-running-locally">
<h3>Database Server Running Locally<a class="headerlink" href="#database-server-running-locally" title="Permalink to this headline">¶</a></h3>
<p>The following connects to a database server running locally on the
default port:</p>
<div class="button-code-block">
<div class="button-row">
<a class="code-button--copy code-button" role="button">
copy</a>
</div>
<div class="copyable-code-block highlight-none"><div class="highlight"><pre><span></span>mongodb://localhost
</pre></div>
</div>
</div>
</div>
<div class="section" id="admin-database">
<h3><code class="docutils literal"><span class="pre">admin</span></code> Database<a class="headerlink" href="#admin-database" title="Permalink to this headline">¶</a></h3>
<p>The following connects and logs in to the <code class="docutils literal"><span class="pre">admin</span></code> database as user
<code class="docutils literal"><span class="pre">sysop</span></code> with the password <code class="docutils literal"><span class="pre">moon</span></code>:</p>
<div class="button-code-block">
<div class="button-row">
<a class="code-button--copy code-button" role="button">
copy</a>
</div>
<div class="copyable-code-block highlight-none"><div class="highlight"><pre><span></span>mongodb://sysop:moon@localhost
</pre></div>
</div>
</div>
</div>
<div class="section" id="records-database">
<h3><code class="docutils literal"><span class="pre">records</span></code> Database<a class="headerlink" href="#records-database" title="Permalink to this headline">¶</a></h3>
<p>The following connects and logs in to the <code class="docutils literal"><span class="pre">records</span></code> database as user
<code class="docutils literal"><span class="pre">sysop</span></code> with the password <code class="docutils literal"><span class="pre">moon</span></code>:</p>
<div class="button-code-block">
<div class="button-row">
<a class="code-button--copy code-button" role="button">
copy</a>
</div>
<div class="copyable-code-block highlight-none"><div class="highlight"><pre><span></span>mongodb://sysop:moon@localhost/records
</pre></div>
</div>
</div>
</div>
<div class="section" id="unix-domain-socket">
<h3>UNIX Domain Socket<a class="headerlink" href="#unix-domain-socket" title="Permalink to this headline">¶</a></h3>
<p>Use a URL encoded connection string when connecting to a UNIX domain
socket.</p>
<p>The following connects to a UNIX domain socket with file path
<code class="docutils literal"><span class="pre">/tmp/mongodb-27017.sock</span></code>:</p>
<div class="button-code-block">
<div class="button-row">
<a class="code-button--copy code-button" role="button">
copy</a>
</div>
<div class="copyable-code-block highlight-none"><div class="highlight"><pre><span></span>mongodb://%2Ftmp%2Fmongodb-27017.sock
</pre></div>
</div>
</div>
<div class="admonition note">
<p class="first admonition-title">Note</p>
<p class="last">Not all drivers support UNIX domain sockets. For information
on your driver, see the <a class="reference external" href="https://docs.mongodb.com/ecosystem/drivers">drivers</a>
documentation.</p>
</div>
</div>
<div class="section" id="replica-set-with-members-on-different-machines">
<h3>Replica Set with Members on Different Machines<a class="headerlink" href="#replica-set-with-members-on-different-machines" title="Permalink to this headline">¶</a></h3>
<p>The following connects to a <a class="reference internal" href="glossary.html#term-replica-set"><span class="xref std std-term">replica set</span></a> with two members, one on
<code class="docutils literal"><span class="pre">db1.example.net</span></code> and the other on <code class="docutils literal"><span class="pre">db2.example.net</span></code>:</p>
<div class="admonition note">
<p class="first admonition-title">Note</p>
<p class="last">For a replica set, specify the hostname(s) of the <a class="reference internal" href="program/mongod.html#bin.mongod" title="bin.mongod"><code class="xref mongodb mongodb-binary docutils literal"><span class="pre">mongod</span></code></a>
instance(s) as listed in the replica set configuration.</p>
</div>
<div class="button-code-block">
<div class="button-row">
<a class="code-button--copy code-button" role="button">
copy</a>
</div>
<div class="copyable-code-block highlight-none"><div class="highlight"><pre><span></span>mongodb://db1.example.net,db2.example.com/?replicaSet=test
</pre></div>
</div>
</div>
</div>
<div class="section" id="replica-set-with-members-on-localhost">
<h3>Replica Set with Members on <code class="docutils literal"><span class="pre">localhost</span></code><a class="headerlink" href="#replica-set-with-members-on-localhost" title="Permalink to this headline">¶</a></h3>
<p>The following connects to a replica set with three members running on <code class="docutils literal"><span class="pre">localhost</span></code> on
ports <code class="docutils literal"><span class="pre">27017</span></code>, <code class="docutils literal"><span class="pre">27018</span></code>, and <code class="docutils literal"><span class="pre">27019</span></code>:</p>
<div class="admonition note">
<p class="first admonition-title">Note</p>
<p class="last">For a replica set, specify the hostname(s) of the <a class="reference internal" href="program/mongod.html#bin.mongod" title="bin.mongod"><code class="xref mongodb mongodb-binary docutils literal"><span class="pre">mongod</span></code></a>
instance(s) as listed in the replica set configuration.</p>
</div>
<div class="button-code-block">
<div class="button-row">
<a class="code-button--copy code-button" role="button">
copy</a>
</div>
<div class="copyable-code-block highlight-none"><div class="highlight"><pre><span></span>mongodb://localhost,localhost:27018,localhost:27019/?replicaSet=test
</pre></div>
</div>
</div>
</div>
<div class="section" id="replica-set-with-read-distribution">
<h3>Replica Set with Read Distribution<a class="headerlink" href="#replica-set-with-read-distribution" title="Permalink to this headline">¶</a></h3>
<p>The following connects to a replica set with three members and
distributes reads to the <a class="reference internal" href="glossary.html#term-secondary"><span class="xref std std-term">secondaries</span></a>:</p>
<div class="admonition note">
<p class="first admonition-title">Note</p>
<p class="last">For a replica set, specify the hostname(s) of the <a class="reference internal" href="program/mongod.html#bin.mongod" title="bin.mongod"><code class="xref mongodb mongodb-binary docutils literal"><span class="pre">mongod</span></code></a>
instance(s) as listed in the replica set configuration.</p>
</div>
<div class="button-code-block">
<div class="button-row">
<a class="code-button--copy code-button" role="button">
copy</a>
</div>
<div class="copyable-code-block highlight-none"><div class="highlight"><pre><span></span>mongodb://example1.com,example2.com,example3.com/?replicaSet=test&amp;readPreference=secondary
</pre></div>
</div>
</div>
</div>
<div class="section" id="replica-set-with-a-high-level-of-write-concern">
<h3>Replica Set with a High Level of Write Concern<a class="headerlink" href="#replica-set-with-a-high-level-of-write-concern" title="Permalink to this headline">¶</a></h3>
<p>The following connects to a replica set with write concern configured to wait
for replication to succeed across a majority of the data-bearing voting
members, with a two-second timeout.</p>
<div class="admonition note">
<p class="first admonition-title">Note</p>
<p class="last">For a replica set, specify the hostname(s) of the <a class="reference internal" href="program/mongod.html#bin.mongod" title="bin.mongod"><code class="xref mongodb mongodb-binary docutils literal"><span class="pre">mongod</span></code></a>
instance(s) as listed in the replica set configuration.</p>
</div>
<div class="button-code-block">
<div class="button-row">
<a class="code-button--copy code-button" role="button">
copy</a>
</div>
<div class="copyable-code-block highlight-none"><div class="highlight"><pre><span></span>mongodb://example1.com,example2.com,example3.com/?replicaSet=test&amp;w=majority&amp;wtimeoutMS=2000
</pre></div>
</div>
</div>
</div>
<div class="section" id="sharded-cluster">
<h3>Sharded Cluster<a class="headerlink" href="#sharded-cluster" title="Permalink to this headline">¶</a></h3>
<p>The following connects to a sharded cluster with three <a class="reference internal" href="program/mongos.html#bin.mongos" title="bin.mongos"><code class="xref mongodb mongodb-binary docutils literal"><span class="pre">mongos</span></code></a> instances:</p>
<div class="button-code-block">
<div class="button-row">
<a class="code-button--copy code-button" role="button">
copy</a>
</div>
<div class="copyable-code-block highlight-none"><div class="highlight"><pre><span></span>mongodb://router1.example.com:27017,router2.example2.com:27017,router3.example3.com:27017/
</pre></div>
</div>
</div>
</div>
</div>
</div>

                
    <div id="btnv">
      <span class="btn-arrow-left">&larr; &nbsp;</span>
      <a class="btn-prev-text" href="system-collections.html" title="Previous Section: System Collections"><span>System Collections</span></a>
      <a class="btn-next-text" href="collation.html" title="Next Section: Collation"><span>Collation</span></a>
      <span class="btn-arrow-right">&nbsp;&rarr;</span>
    </div>
                  <div class="footer">
                    <div class="copyright">
                      <p>&copy; MongoDB, Inc 2008-present. MongoDB, Mongo, and the leaf logo are registered trademarks of MongoDB, Inc.</p>
                    </div>
                  </div>
              </div></div>
            </div>
        </div>
    </div>
    <div class="right-column">
      <div class="wrapper"> <div id='mongodb-docs-1'>
   <script type='text/javascript'>
      googletag.cmd.push(function() { googletag.display('mongodb-docs-1'); });
   </script>
</div>
            <div class="social">
               <a class="slack-icon" href="https://slackpass.io/mongo-db?jmp=docs" title="https://slackpass.io/mongo-db?jmp=docs"><i class="fab fa-slack" aria-hidden="true"></i></a>
               <a class="twitter-icon" href="https://twitter.com/MongoDB" title="https://twitter.com/MongoDB"><i class="fab fa-twitter-square"></i></a>
               <a class="youtube-icon" href="https://www.youtube.com/user/MongoDB" title="https://www.youtube.com/user/MongoDB"><i class="fab fa-youtube-square"></i></a>
               <a class="facebook-icon" href="https://www.facebook.com/mongodb" title="https://www.facebook.com/mongodb"><i class="fab fa-facebook-square"></i></a>
               <a class="stack-overflow-icon" href="https://stackoverflow.com/tags/mongodb/info" title="https://stackoverflow.com/tags/mongodb/info"><i class="fab fa-stack-overflow" aria-hidden="true"></i></a>
            </div>
        

      </div>
    </div>
    
      <div id="rating-panel"></div>
    
    <div class="clearfix"></div>
  </div>
  

  <script type="text/javascript">
  // Bootstrap array of links that should trigger a full page reload
  window.docsExcludedNav = ['/administration', '/administration/production-checklist', '/administration/indexes-management', '/aggregation', '/applications/geospatial-indexes', '/applications/indexes', '/contributors/getting-started', '/core/2d', '/core/2dsphere', '/core/auditing', '/core/authentication', '/core/authorization', '/core/backups', '/core/read-isolation-consistency-recency', '/core/databases-and-collections', '/core/geohaystack', '/core/index-single', '/core/index-compound', '/core/index-creation', '/core/index-hashed', '/core/index-multikey', '/core/index-partial', '/core/index-sparse', '/core/index-text', '/core/index-ttl', '/core/index-unique', '/core/index-wildcard', '/core/journaling', '/core/kerberos', '/core/map-reduce', '/core/operational-segregation', '/core/query-optimization', '/core/read-preference', '/core/replica-set-architectures', '/core/replica-set-high-availability', '/core/replica-set-members', '/core/replica-set-secondary', '/core/transactions', '/geospatial-queries', '/replication', '/core/sharded-cluster-components', '/core/wiredtiger', '/core/write-operations-atomicity', '/crud', '/indexes', '/installation', '/introduction', '/mongo', '/products/bi-connector', '/reference/command', '/reference/collation', '/text-search', '/tutorial/manage-the-database-profiler', '/core/index-text', '/reference/bson-types', '/reference/configuration-options', '/reference/indexes', '/reference/method', '/reference/operator/aggregation', '/reference/operator/query', '/reference/operator/query-modifier', '/reference/operator/update', '/reference/replication', '/reference/read-concern', '/reference/security', '/reference/sharding', '/reference/write-concern', '/release-notes/2.4', '/release-notes/2.6', '/release-notes/2.8', '/release-notes/3.0', '/release-notes/3.2', '/release-notes/3.4', '/release-notes/3.6', '/release-notes/4.0', '/release-notes/4.2', '/security', '/sharding', '/changeStreams', '/core/zone-sharding', '/core/hashed-sharding', '/core/ranged-sharding', '/storage', '/tutorial/change-sharded-cluster-wiredtiger', '/tutorial/insert-documents', '/tutorial/query-documents', '/tutorial/remove-documents', '/tutorial/update-documents', '/tutorial/enable-authentication', '/tutorial/install-mongodb-on-ubuntu', '/tutorial/install-mongodb-on-windows', '/tutorial/install-mongodb-on-red-hat', '/tutorial/install-mongodb-on-debian', '/tutorial/install-mongodb-on-suse', '/tutorial/install-mongodb-on-amazon', '/tutorial/install-mongodb-enterprise-on-ubuntu', '/tutorial/install-mongodb-enterprise-on-windows', '/tutorial/install-mongodb-enterprise-on-red-hat', '/tutorial/install-mongodb-enterprise-on-debian', '/tutorial/install-mongodb-enterprise-on-suse', '/tutorial/install-mongodb-enterprise-on-amazon', '/tutorial/install-mongodb-on-os-x'];
  </script></body>
</html>